Class PluginDescriptor

All Implemented Interfaces:
Manageable, PersistenceCapable, Shareable, RegistryContext, UserFields, XObject, Described, Map, Serializable

public final class PluginDescriptor extends Item
See Also:
  • Field Details

  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Item
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Item
      Returns:
      new instance of class of this node
    • createCoreDescriptor

      public static PluginDescriptor createCoreDescriptor(File libDir)
    • getPluginVersion

      public String getPluginVersion()
    • getPluginName

      public String getPluginName()
    • getPluginProvider

      public String getPluginProvider()
    • get

      public Object get(Object key, Object defaultValue)
      Description copied from interface: Map
      Returns the value associated with key. If there is no value associated with key, defaultValue is returned.
      Specified by:
      get in interface Map
      Overrides:
      get in class Item
      Parameters:
      key - a key for the map
      defaultValue - the default value
      Returns:
      the associated value, or defaultValue
    • readAttribute

      protected boolean readAttribute(String uri, String name, String value) throws SAXException
      Overrides:
      readAttribute in class Item
      Throws:
      SAXException
    • read

      public static PluginDescriptor read(String systemId, InputStream in, FileSystem fs, Object dir) throws IOException
      Throws:
      IOException
    • loadPlugin

      public boolean loadPlugin(Registry registry, ClassLoader parentLoader)
    • getPluginDirectory

      public Object getPluginDirectory()
    • getFileSystem

      public FileSystem getFileSystem()
    • setPluginState

      public void setPluginState(int state)
    • getPluginState

      public int getPluginState()
    • getPlugin

      public Plugin getPlugin()
    • toString

      public String toString()
      Overrides:
      toString in class Node
    • getI18NBundle

      public I18NBundle getI18NBundle()
      Overrides:
      getI18NBundle in class Item
    • setI18NBundle

      public void setI18NBundle(I18NBundle bundle)
    • getLibraryFiles

      public Object[] getLibraryFiles()
    • getClassLoader

      public ClassLoader getClassLoader()
      Overrides:
      getClassLoader in class Item
    • getPluginClassLoader

      public PluginClassLoader getPluginClassLoader()
    • getURLForResource

      public URL getURLForResource(String name)
    • getInstance

      public static PluginDescriptor getInstance(String pluginId)
    • getInstance

      public static PluginDescriptor getInstance(Class cls)
    • getInstance

      public static PluginDescriptor getInstance(ClassLoader loader)
    • getConfigurationDirectory

      public File getConfigurationDirectory()
    • loadMethodsDoc

      public void loadMethodsDoc()
    • loadMethodsDoc

      public void loadMethodsDoc(URL u)