|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.plugins.BasePluginType
public abstract class BasePluginType
Constructor Summary | |
---|---|
BasePluginType(Class<? extends Annotation> pluginType)
|
|
BasePluginType(Class<? extends Annotation> pluginType,
String id,
String name)
|
Method Summary | |
---|---|
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 category,
String id,
String name,
String description,
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 pluginMethod Detail |
---|
public Map<Class<?>,String> getAdditionalRuntimeObjectTypes()
public 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 String toString()
toString
in class Object
public 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 category, String id, String name, String description, 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 plugin
KettlePluginException
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 use
KettlePluginException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |