|
||||||||||
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(java.lang.String attachmentDir)
Create a unique file in the designated directory |
void |
delete(java.io.File file)
Deletes attachment file |
void |
deleteOnExit(java.io.File file)
Mark the file for deletion on application/VM exit |
void |
deleteOnTimeInterval(int interval,
java.io.File file)
Mark attachment file for deletion when designated time interval in seconds has elapsed. |
FileAccessor |
getFileAccessor(java.lang.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(java.lang.String attachmentDir) throws java.io.IOException
LifecycleManager
create
in interface LifecycleManager
java.io.IOException
public void delete(java.io.File file) throws java.io.IOException
LifecycleManager
delete
in interface LifecycleManager
java.io.IOException
public void deleteOnExit(java.io.File file) throws java.io.IOException
LifecycleManager
deleteOnExit
in interface LifecycleManager
java.io.IOException
public void deleteOnTimeInterval(int interval, java.io.File file) throws java.io.IOException
LifecycleManager
deleteOnTimeInterval
in interface LifecycleManager
java.io.IOException
public FileAccessor getFileAccessor(java.lang.String fileName) throws java.io.IOException
LifecycleManager
getFileAccessor
in interface LifecycleManager
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |