Package org.pentaho.di.core.plugins
Class Plugin
java.lang.Object
org.pentaho.di.core.plugins.Plugin
- All Implemented Interfaces:
Comparable<Plugin>
,PluginInterface
- Direct Known Subclasses:
SupplementalPlugin
This describes the plugin itself, the IDs it listens too, what libraries (jar files) it uses, the names, the i18n
details, etc.
- Author:
- matt
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlugin
(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder) Plugin
(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl) Plugin
(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl, String suggestion) Plugin
(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, String classLoaderGroup, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl) Plugin
(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, String classLoaderGroup, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl, String suggestion) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
String[]
getIds()
Class<?>
getName()
Class<? extends PluginTypeInterface>
int
hashCode()
boolean
boolean
boolean
void
setCasesUrl
(String casesUrl) void
setCategory
(String category) void
setClassLoaderGroup
(String classLoaderGroup) void
setClassMap
(Map<Class<?>, String> classMap) void
setDescription
(String description) void
setDocumentationUrl
(String documentationUrl) void
setErrorHelpFile
(String errorHelpFile) void
setForumUrl
(String forumUrl) void
void
setImageFile
(String imageFile) void
setLibraries
(List<String> libraries) void
void
setNativePlugin
(boolean nativePlugin) void
setPluginType
(Class<? extends PluginTypeInterface> pluginType) void
setSaperateClassLoaderNeeded
(boolean separateClassLoaderNeeded) void
setSuggestion
(String suggestion) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.pentaho.di.core.plugins.PluginInterface
getPluginProperties, merge
-
Field Details
-
nullStringComparator
-
-
Constructor Details
-
Plugin
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder) - Parameters:
ids
-pluginType
-category
-name
-description
-imageFile
-separateClassLoaderNeeded
-nativePlugin
-classMap
-libraries
-
-
Plugin
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl) - Parameters:
ids
-pluginType
-category
-name
-description
-imageFile
-separateClassLoaderNeeded
-nativePlugin
-classMap
-libraries
-
-
Plugin
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, String classLoaderGroup, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl) - Parameters:
ids
-pluginType
-mainType
-category
-name
-description
-imageFile
-separateClassLoaderNeeded
-classLoaderGroup
-nativePlugin
-classMap
-libraries
-errorHelpFile
-pluginFolder
-documentationUrl
-casesUrl
-forumUrl
-
-
Plugin
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, String classLoaderGroup, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl, String suggestion) - Parameters:
ids
-pluginType
-mainType
-category
-name
-description
-imageFile
-separateClassLoaderNeeded
-classLoaderGroup
-nativePlugin
-classMap
-libraries
-errorHelpFile
-pluginFolder
-documentationUrl
-casesUrl
-forumUrl
-suggestion
-
-
Plugin
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>, String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl, String suggestion) - Parameters:
ids
-pluginType
-mainType
-category
-name
-description
-imageFile
-separateClassLoaderNeeded
-nativePlugin
-classMap
-libraries
-errorHelpFile
-pluginFolder
-documentationUrl
-casesUrl
-forumUrl
-suggestion
-
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Plugin>
-
matches
- Specified by:
matches
in interfacePluginInterface
- Parameters:
id
- the plugin id to match- Returns:
- true if one of the ids matches the given argument. Return false if it doesn't.
-
getCategory
- Specified by:
getCategory
in interfacePluginInterface
- Returns:
- the category
-
setCategory
- Parameters:
category
- the category to set
-
getName
- Specified by:
getName
in interfacePluginInterface
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getDescription
- Specified by:
getDescription
in interfacePluginInterface
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getIds
- Specified by:
getIds
in interfacePluginInterface
- Returns:
- the ids
-
setIds
- Parameters:
ids
- the ids to set
-
getPluginType
- Specified by:
getPluginType
in interfacePluginInterface
- Returns:
- the pluginType
-
setPluginType
- Parameters:
pluginType
- the pluginType to set
-
getImageFile
- Specified by:
getImageFile
in interfacePluginInterface
- Returns:
- the imageFile
-
setImageFile
- Specified by:
setImageFile
in interfacePluginInterface
- Parameters:
imageFile
- the imageFile to set
-
isSeparateClassLoaderNeeded
public boolean isSeparateClassLoaderNeeded()- Specified by:
isSeparateClassLoaderNeeded
in interfacePluginInterface
- Returns:
- the separateClassLoaderNeeded
-
setSaperateClassLoaderNeeded
public void setSaperateClassLoaderNeeded(boolean separateClassLoaderNeeded) - Parameters:
separateClassLoaderNeeded
- the separateClassLoaderNeeded to set
-
isNativePlugin
public boolean isNativePlugin()- Specified by:
isNativePlugin
in interfacePluginInterface
- Returns:
- the nativePlugin
-
setNativePlugin
public void setNativePlugin(boolean nativePlugin) - Parameters:
nativePlugin
- the nativePlugin to set
-
getClassMap
- Specified by:
getClassMap
in interfacePluginInterface
- Returns:
- the classMap
-
setClassMap
- Parameters:
classMap
- the classMap to set
-
getLibraries
- Specified by:
getLibraries
in interfacePluginInterface
- Returns:
- the libraries
-
setLibraries
- Parameters:
libraries
- the libraries to set
-
getErrorHelpFile
- Specified by:
getErrorHelpFile
in interfacePluginInterface
- Returns:
- the errorHelpFile
-
setErrorHelpFile
- Specified by:
setErrorHelpFile
in interfacePluginInterface
- Parameters:
errorHelpFile
- the errorHelpFile to set
-
getMainType
- Specified by:
getMainType
in interfacePluginInterface
- Returns:
- The main class assigned to this Plugin.
-
getPluginDirectory
- Specified by:
getPluginDirectory
in interfacePluginInterface
-
getDocumentationUrl
- Specified by:
getDocumentationUrl
in interfacePluginInterface
- Returns:
- the documentationUrl
-
setDocumentationUrl
- Specified by:
setDocumentationUrl
in interfacePluginInterface
- Parameters:
documentationUrl
- the documentationUrl to set
-
getCasesUrl
- Specified by:
getCasesUrl
in interfacePluginInterface
- Returns:
- the casesUrl
-
setCasesUrl
- Specified by:
setCasesUrl
in interfacePluginInterface
- Parameters:
casesUrl
- the casesUrl to set
-
getForumUrl
- Specified by:
getForumUrl
in interfacePluginInterface
- Returns:
- the forum URL
-
setForumUrl
- Specified by:
setForumUrl
in interfacePluginInterface
- Parameters:
forumUrl
- the forum URL to set
-
getClassLoaderGroup
- Specified by:
getClassLoaderGroup
in interfacePluginInterface
- Returns:
- The group to which this class loader belongs. Returns null if the plugin does not belong to a group (the default)
-
setSuggestion
- Specified by:
setSuggestion
in interfacePluginInterface
-
getSuggestion
- Specified by:
getSuggestion
in interfacePluginInterface
-
setClassLoaderGroup
- Specified by:
setClassLoaderGroup
in interfacePluginInterface
- Parameters:
classLoaderGroup
- The group to which this class loader belongs. Set to null if the plugin does not belong to a group (the default)
-