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 directoryvoid
Deletes attachment filevoid
deleteOnExit
(File file) Mark the file for deletion on application/VM exitvoid
deleteOnTimeInterval
(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:LifecycleManager
Create a unique file in the designated directory- Specified by:
create
in interfaceLifecycleManager
- Returns:
- the
FileAccessor
for the file created by this method - Throws:
IOException
-
delete
Description copied from interface:LifecycleManager
Deletes attachment file- Specified by:
delete
in interfaceLifecycleManager
- Throws:
IOException
-
deleteOnExit
Description copied from interface:LifecycleManager
Mark the file for deletion on application/VM exit- Specified by:
deleteOnExit
in interfaceLifecycleManager
- Throws:
IOException
-
deleteOnTimeInterval
Description copied from interface:LifecycleManager
Mark attachment file for deletion when designated time interval in seconds has elapsed.- Specified by:
deleteOnTimeInterval
in interfaceLifecycleManager
- Throws:
IOException
-
getFileAccessor
Description copied from interface:LifecycleManager
This method will return the file accessor associated with this file.- Specified by:
getFileAccessor
in interfaceLifecycleManager
- Returns:
- the
FileAccessor
object for the given file - Throws:
IOException
-