Class LifecycleManagerImpl
java.lang.Object
org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl
- All Implemented Interfaces:
LifecycleManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a unique file in the designated directoryvoidDeletes attachment filevoiddeleteOnExit(File file) Mark the file for deletion on application/VM exitvoiddeleteOnTimeInterval(int interval, File file) Mark attachment file for deletion when designated time interval in seconds has elapsed.getFileAccessor(String fileName) This method will return the file accessor associated with this file.
-
Constructor Details
-
LifecycleManagerImpl
public LifecycleManagerImpl()
-
-
Method Details
-
create
Description copied from interface:LifecycleManagerCreate a unique file in the designated directory- Specified by:
createin interfaceLifecycleManager- Returns:
- the
FileAccessorfor the file created by this method - Throws:
IOException
-
delete
Description copied from interface:LifecycleManagerDeletes attachment file- Specified by:
deletein interfaceLifecycleManager- Throws:
IOException
-
deleteOnExit
Description copied from interface:LifecycleManagerMark the file for deletion on application/VM exit- Specified by:
deleteOnExitin interfaceLifecycleManager- Throws:
IOException
-
deleteOnTimeInterval
Description copied from interface:LifecycleManagerMark attachment file for deletion when designated time interval in seconds has elapsed.- Specified by:
deleteOnTimeIntervalin interfaceLifecycleManager- Throws:
IOException
-
getFileAccessor
Description copied from interface:LifecycleManagerThis method will return the file accessor associated with this file.- Specified by:
getFileAccessorin interfaceLifecycleManager- Returns:
- the
FileAccessorobject for the given file - Throws:
IOException
-