Interface FileOperationProvider
- All Known Implementing Classes:
AbstractFileOperationProvider
public interface FileOperationProvider
FileOperationProvider is responsible for dealing with FileOperation's.
- Since:
- 0.1
- Author:
- Siarhei Baidun
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectOperations
(Collection operationsList, FileObject file) Gather available operations for the specified FileObject and put them into specified operationsList.getOperation
(FileObject file, Class operationClass)
-
Method Details
-
collectOperations
Gather available operations for the specified FileObject and put them into specified operationsList.- Parameters:
operationsList
- the list of available operations for the specivied FileObject. The operationList contains classes of available operations, e.g. Class objects.file
- the FileObject for which we want to get the list of available operations.- Throws:
FileSystemException
- if list of operations cannto be retrieved.
-
getOperation
- Parameters:
file
- the FileObject for which we need a operation.operationClass
- the Class which instance we are needed.- Returns:
- the requried operation instance. s
- Throws:
FileSystemException
- if operation cannot be retrieved.
-