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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlugin(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 TypeMethodDescriptionintbooleanString[]getIds()Class<?>getName()Class<? extends PluginTypeInterface>inthashCode()booleanbooleanbooleanvoidsetCasesUrl(String casesUrl) voidsetCategory(String category) voidsetClassLoaderGroup(String classLoaderGroup) voidsetClassMap(Map<Class<?>, String> classMap) voidsetDescription(String description) voidsetDocumentationUrl(String documentationUrl) voidsetErrorHelpFile(String errorHelpFile) voidsetForumUrl(String forumUrl) voidvoidsetImageFile(String imageFile) voidsetLibraries(List<String> libraries) voidvoidsetNativePlugin(boolean nativePlugin) voidsetPluginType(Class<? extends PluginTypeInterface> pluginType) voidsetSaperateClassLoaderNeeded(boolean separateClassLoaderNeeded) voidsetSuggestion(String suggestion) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
compareToin interfaceComparable<Plugin>
-
matches
- Specified by:
matchesin 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:
getCategoryin interfacePluginInterface- Returns:
- the category
-
setCategory
- Parameters:
category- the category to set
-
getName
- Specified by:
getNamein interfacePluginInterface- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Specified by:
getDescriptionin interfacePluginInterface- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getIds
- Specified by:
getIdsin interfacePluginInterface- Returns:
- the ids
-
setIds
- Parameters:
ids- the ids to set
-
getPluginType
- Specified by:
getPluginTypein interfacePluginInterface- Returns:
- the pluginType
-
setPluginType
- Parameters:
pluginType- the pluginType to set
-
getImageFile
- Specified by:
getImageFilein interfacePluginInterface- Returns:
- the imageFile
-
setImageFile
- Specified by:
setImageFilein interfacePluginInterface- Parameters:
imageFile- the imageFile to set
-
isSeparateClassLoaderNeeded
public boolean isSeparateClassLoaderNeeded()- Specified by:
isSeparateClassLoaderNeededin interfacePluginInterface- Returns:
- the separateClassLoaderNeeded
-
setSaperateClassLoaderNeeded
public void setSaperateClassLoaderNeeded(boolean separateClassLoaderNeeded) - Parameters:
separateClassLoaderNeeded- the separateClassLoaderNeeded to set
-
isNativePlugin
public boolean isNativePlugin()- Specified by:
isNativePluginin interfacePluginInterface- Returns:
- the nativePlugin
-
setNativePlugin
public void setNativePlugin(boolean nativePlugin) - Parameters:
nativePlugin- the nativePlugin to set
-
getClassMap
- Specified by:
getClassMapin interfacePluginInterface- Returns:
- the classMap
-
setClassMap
- Parameters:
classMap- the classMap to set
-
getLibraries
- Specified by:
getLibrariesin interfacePluginInterface- Returns:
- the libraries
-
setLibraries
- Parameters:
libraries- the libraries to set
-
getErrorHelpFile
- Specified by:
getErrorHelpFilein interfacePluginInterface- Returns:
- the errorHelpFile
-
setErrorHelpFile
- Specified by:
setErrorHelpFilein interfacePluginInterface- Parameters:
errorHelpFile- the errorHelpFile to set
-
getMainType
- Specified by:
getMainTypein interfacePluginInterface- Returns:
- The main class assigned to this Plugin.
-
getPluginDirectory
- Specified by:
getPluginDirectoryin interfacePluginInterface
-
getDocumentationUrl
- Specified by:
getDocumentationUrlin interfacePluginInterface- Returns:
- the documentationUrl
-
setDocumentationUrl
- Specified by:
setDocumentationUrlin interfacePluginInterface- Parameters:
documentationUrl- the documentationUrl to set
-
getCasesUrl
- Specified by:
getCasesUrlin interfacePluginInterface- Returns:
- the casesUrl
-
setCasesUrl
- Specified by:
setCasesUrlin interfacePluginInterface- Parameters:
casesUrl- the casesUrl to set
-
getForumUrl
- Specified by:
getForumUrlin interfacePluginInterface- Returns:
- the forum URL
-
setForumUrl
- Specified by:
setForumUrlin interfacePluginInterface- Parameters:
forumUrl- the forum URL to set
-
getClassLoaderGroup
- Specified by:
getClassLoaderGroupin 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:
setSuggestionin interfacePluginInterface
-
getSuggestion
- Specified by:
getSuggestionin interfacePluginInterface
-
setClassLoaderGroup
- Specified by:
setClassLoaderGroupin 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)
-