当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
RefactoringPluginFactory (Refactoring API) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.refactoring.spi
Interface RefactoringPluginFactory
public interface RefactoringPluginFactory
Factory for a refactoring plugin (implementing RefactoringPlugin
interface).
Implementations of this factory can be registered to the lookup. The refactorings
then get all the implementations of this interface from the lookup and call createInstance
method passing "this" as a parameter.
createInstance
RefactoringPlugin createInstance(AbstractRefactoring refactoring)
- Creates and returns a new instance of the refactoring plugin or returns
null if the plugin is not suitable for the passed refactoring.
- Parameters:
refactoring
- Refactoring, the plugin should operate on.
- Returns:
- Instance of RefactoringPlugin or null if the plugin is not applicable to
the passed refactoring.