public abstract class BasePluginType extends Object implements PluginTypeInterface
Constructor and Description |
---|
BasePluginType(Class<? extends Annotation> pluginType) |
BasePluginType(Class<? extends Annotation> pluginType,
String id,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addObjectType(Class<?> clz,
String xmlNodeName)
Register an additional class type to be managed by the plugin system.
|
Map<Class<?>,String> |
getAdditionalRuntimeObjectTypes() |
String |
getId() |
String |
getName() |
List<PluginFolderInterface> |
getPluginFolders() |
void |
handlePluginAnnotation(Class<?> clazz,
Annotation annotation,
List<String> libraries,
boolean nativePluginType,
URL pluginFolder)
Handle an annotated plugin
|
void |
registerCustom(Class<?> clazz,
String cat,
String id,
String name,
String desc,
String image)
This method allows for custom registration of plugins that are on the main classpath.
|
void |
searchPlugins()
Let's put in code here to search for the step plugins..
|
void |
setId(String id) |
void |
setName(String name) |
void |
setPluginFolders(List<PluginFolderInterface> pluginFolders) |
String |
toString() |
public BasePluginType(Class<? extends Annotation> pluginType)
public BasePluginType(Class<? extends Annotation> pluginType, String id, String name)
id
- The plugin type IDname
- the name of the pluginpublic void addObjectType(Class<?> clz, String xmlNodeName)
PluginTypeInterface
addObjectType
in interface PluginTypeInterface
clz
- category class, usually an interfacexmlNodeName
- xml node to search for a class namepublic void searchPlugins() throws KettlePluginException
searchPlugins
in interface PluginTypeInterface
KettlePluginException
public String getId()
getId
in interface PluginTypeInterface
public void setId(String id)
id
- the id to setpublic String getName()
getName
in interface PluginTypeInterface
public void setName(String name)
name
- the name to setpublic List<PluginFolderInterface> getPluginFolders()
getPluginFolders
in interface PluginTypeInterface
public void setPluginFolders(List<PluginFolderInterface> pluginFolders)
pluginFolders
- the pluginFolders to setpublic void registerCustom(Class<?> clazz, String cat, String id, String name, String desc, String image) throws KettlePluginException
clazz
- the plugin implementation to registercategory
- the category of the pluginid
- the id for the pluginname
- the name for the plugindescription
- the description for the pluginimage
- the image for the pluginKettlePluginException
public void handlePluginAnnotation(Class<?> clazz, Annotation annotation, List<String> libraries, boolean nativePluginType, URL pluginFolder) throws KettlePluginException
handlePluginAnnotation
in interface PluginTypeInterface
clazz
- The class to useannotation
- The annotation to get information fromlibraries
- The libraries to addnativePluginType
- Is this a native plugin?pluginFolder
- The plugin folder to useKettlePluginException