|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl
public class LifecycleManagerImpl
| Nested Class Summary | |
|---|---|
class |
LifecycleManagerImpl.FileDeletor
|
| Constructor Summary | |
|---|---|
LifecycleManagerImpl()
|
|
| Method Summary | |
|---|---|
FileAccessor |
create(String attachmentDir)
Create a unique file in the designated directory |
void |
delete(File file)
Deletes attachment file |
void |
deleteOnExit(File file)
Mark the file for deletion on application/VM exit |
void |
deleteOnTimeInterval(int interval,
File file)
Mark attachment file for deletion when designated time interval in seconds has elapsed. |
FileAccessor |
getFileAccessor(String fileName)
This method will return the file accessor associated with this file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleManagerImpl()
| Method Detail |
|---|
public FileAccessor create(String attachmentDir)
throws IOException
LifecycleManager
create in interface LifecycleManagerFileAccessor for the file created by this method
IOException
public void delete(File file)
throws IOException
LifecycleManager
delete in interface LifecycleManagerIOException
public void deleteOnExit(File file)
throws IOException
LifecycleManager
deleteOnExit in interface LifecycleManagerIOException
public void deleteOnTimeInterval(int interval,
File file)
throws IOException
LifecycleManager
deleteOnTimeInterval in interface LifecycleManagerIOException
public FileAccessor getFileAccessor(String fileName)
throws IOException
LifecycleManager
getFileAccessor in interface LifecycleManagerFileAccessor object for the given file
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||