FileOperationProviderpublic abstract class AbstractFileOperationProvider extends java.lang.Object implements FileOperationProvider
| Constructor | Description |
|---|---|
AbstractFileOperationProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addOperation(java.lang.Class operationClass) |
|
void |
collectOperations(java.util.Collection operationsList,
FileObject file) |
Gather available operations for the specified FileObject and put them into
specified operationsList.
|
protected abstract void |
doCollectOperations(java.util.Collection availableOperations,
java.util.Collection resultList,
FileObject file) |
|
FileOperation |
getOperation(FileObject file,
java.lang.Class operationClass) |
|
protected abstract FileOperation |
instantiateOperation(FileObject file,
java.lang.Class operationClass) |
|
protected java.lang.Class |
lookupOperation(java.lang.Class operationClass) |
public final void collectOperations(java.util.Collection operationsList,
FileObject file)
throws FileSystemException
collectOperations in interface FileOperationProvideroperationsList - 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.FileSystemException - if list of operations cannto be retrieved.protected abstract void doCollectOperations(java.util.Collection availableOperations,
java.util.Collection resultList,
FileObject file)
throws FileSystemException
FileSystemExceptionpublic final FileOperation getOperation(FileObject file, java.lang.Class operationClass) throws FileSystemException
getOperation in interface FileOperationProviderfile - the FileObject for which we need a operation.operationClass - the Class which instance we are needed.FileSystemException - if operation cannot be retrieved.protected abstract FileOperation instantiateOperation(FileObject file, java.lang.Class operationClass) throws FileSystemException
operationClass - FileSystemExceptionprotected final java.lang.Class lookupOperation(java.lang.Class operationClass)
throws FileSystemException
operationClass - FileSystemExceptionprotected final void addOperation(java.lang.Class operationClass)
throws FileSystemException
operationClass - FileSystemException