当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ProvidedExtensions (Master Filesystem) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.masterfs.providers
Class ProvidedExtensions
java.lang.Object
org.netbeans.modules.masterfs.providers.ProvidedExtensions
- All Implemented Interfaces:
- InterceptionListener
public class ProvidedExtensions
- extends Object
- implements InterceptionListener
Encapsulate a group of individual factory methods that are responsible for creating objects
of specific interfaces. If subclassed and provided by
AnnotationProvider.getInterceptionListener()
then
individual instances will be called by MasterFileSystem
There may exist more than one instance of ProvidedExtensions
at a given moment and therefore there is defined for
every method wheter will be called by MasterFileSystem
for every present instance or just for the first one.
- See Also:
ProvidedExtensions.IOHandler
,
InterceptionListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProvidedExtensions
public ProvidedExtensions()
getMoveHandler
public ProvidedExtensions.IOHandler getMoveHandler(File from,
File to)
- Return instance of
ProvidedExtensions.IOHandler
that is responsible for moving the file or null.
Just the first non null instance of IOHandler
is used by
MasterFileSystem
- Parameters:
from
- file to be movedto
- target to move this file to
- Returns:
- instance of
ProvidedExtensions.IOHandler
that is responsible for moving the file or null
getRenameHandler
public ProvidedExtensions.IOHandler getRenameHandler(File from,
String newName)
getDeleteHandler
public ProvidedExtensions.DeleteHandler getDeleteHandler(File f)
createSuccess
public void createSuccess(FileObject fo)
- Specified by:
createSuccess
in interface InterceptionListener
createFailure
public void createFailure(FileObject parent,
String name,
boolean isFolder)
- Specified by:
createFailure
in interface InterceptionListener
beforeCreate
public void beforeCreate(FileObject parent,
String name,
boolean isFolder)
- Specified by:
beforeCreate
in interface InterceptionListener
deleteSuccess
public void deleteSuccess(FileObject fo)
- Specified by:
deleteSuccess
in interface InterceptionListener
deleteFailure
public void deleteFailure(FileObject fo)
- Specified by:
deleteFailure
in interface InterceptionListener
beforeDelete
public void beforeDelete(FileObject fo)
- Specified by:
beforeDelete
in interface InterceptionListener
beforeChange
public void beforeChange(FileObject fo)