Class Plugin

java.lang.Object
org.pentaho.di.core.plugins.Plugin
All Implemented Interfaces:
Comparable<Plugin>, PluginInterface
Direct Known Subclasses:
SupplementalPlugin

public class Plugin extends Object implements PluginInterface, Comparable<Plugin>
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 Details

  • 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Plugin o)
      Specified by:
      compareTo in interface Comparable<Plugin>
    • matches

      public boolean matches(String id)
      Specified by:
      matches in interface PluginInterface
      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

      public String getCategory()
      Specified by:
      getCategory in interface PluginInterface
      Returns:
      the category
    • setCategory

      public void setCategory(String category)
      Parameters:
      category - the category to set
    • getName

      public String getName()
      Specified by:
      getName in interface PluginInterface
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface PluginInterface
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getIds

      public String[] getIds()
      Specified by:
      getIds in interface PluginInterface
      Returns:
      the ids
    • setIds

      public void setIds(String[] ids)
      Parameters:
      ids - the ids to set
    • getPluginType

      public Class<? extends PluginTypeInterface> getPluginType()
      Specified by:
      getPluginType in interface PluginInterface
      Returns:
      the pluginType
    • setPluginType

      public void setPluginType(Class<? extends PluginTypeInterface> pluginType)
      Parameters:
      pluginType - the pluginType to set
    • getImageFile

      public String getImageFile()
      Specified by:
      getImageFile in interface PluginInterface
      Returns:
      the imageFile
    • setImageFile

      public void setImageFile(String imageFile)
      Specified by:
      setImageFile in interface PluginInterface
      Parameters:
      imageFile - the imageFile to set
    • isSeparateClassLoaderNeeded

      public boolean isSeparateClassLoaderNeeded()
      Specified by:
      isSeparateClassLoaderNeeded in interface PluginInterface
      Returns:
      the separateClassLoaderNeeded
    • setSaperateClassLoaderNeeded

      public void setSaperateClassLoaderNeeded(boolean separateClassLoaderNeeded)
      Parameters:
      separateClassLoaderNeeded - the separateClassLoaderNeeded to set
    • isNativePlugin

      public boolean isNativePlugin()
      Specified by:
      isNativePlugin in interface PluginInterface
      Returns:
      the nativePlugin
    • setNativePlugin

      public void setNativePlugin(boolean nativePlugin)
      Parameters:
      nativePlugin - the nativePlugin to set
    • getClassMap

      public Map<Class<?>,String> getClassMap()
      Specified by:
      getClassMap in interface PluginInterface
      Returns:
      the classMap
    • setClassMap

      public void setClassMap(Map<Class<?>,String> classMap)
      Parameters:
      classMap - the classMap to set
    • getLibraries

      public List<String> getLibraries()
      Specified by:
      getLibraries in interface PluginInterface
      Returns:
      the libraries
    • setLibraries

      public void setLibraries(List<String> libraries)
      Parameters:
      libraries - the libraries to set
    • getErrorHelpFile

      public String getErrorHelpFile()
      Specified by:
      getErrorHelpFile in interface PluginInterface
      Returns:
      the errorHelpFile
    • setErrorHelpFile

      public void setErrorHelpFile(String errorHelpFile)
      Specified by:
      setErrorHelpFile in interface PluginInterface
      Parameters:
      errorHelpFile - the errorHelpFile to set
    • getMainType

      public Class<?> getMainType()
      Specified by:
      getMainType in interface PluginInterface
      Returns:
      The main class assigned to this Plugin.
    • getPluginDirectory

      public URL getPluginDirectory()
      Specified by:
      getPluginDirectory in interface PluginInterface
    • getDocumentationUrl

      public String getDocumentationUrl()
      Specified by:
      getDocumentationUrl in interface PluginInterface
      Returns:
      the documentationUrl
    • setDocumentationUrl

      public void setDocumentationUrl(String documentationUrl)
      Specified by:
      setDocumentationUrl in interface PluginInterface
      Parameters:
      documentationUrl - the documentationUrl to set
    • getCasesUrl

      public String getCasesUrl()
      Specified by:
      getCasesUrl in interface PluginInterface
      Returns:
      the casesUrl
    • setCasesUrl

      public void setCasesUrl(String casesUrl)
      Specified by:
      setCasesUrl in interface PluginInterface
      Parameters:
      casesUrl - the casesUrl to set
    • getForumUrl

      public String getForumUrl()
      Specified by:
      getForumUrl in interface PluginInterface
      Returns:
      the forum URL
    • setForumUrl

      public void setForumUrl(String forumUrl)
      Specified by:
      setForumUrl in interface PluginInterface
      Parameters:
      forumUrl - the forum URL to set
    • getClassLoaderGroup

      public String getClassLoaderGroup()
      Specified by:
      getClassLoaderGroup in interface PluginInterface
      Returns:
      The group to which this class loader belongs. Returns null if the plugin does not belong to a group (the default)
    • setSuggestion

      public void setSuggestion(String suggestion)
      Specified by:
      setSuggestion in interface PluginInterface
    • getSuggestion

      public String getSuggestion()
      Specified by:
      getSuggestion in interface PluginInterface
    • setClassLoaderGroup

      public void setClassLoaderGroup(String classLoaderGroup)
      Specified by:
      setClassLoaderGroup in interface PluginInterface
      Parameters:
      classLoaderGroup - The group to which this class loader belongs. Set to null if the plugin does not belong to a group (the default)