Class Extension

java.lang.Object
org.datanucleus.plugin.Extension

public class Extension extends Object
Extension declared in a plug-in. Represents the XML element
  • Field Details

    • point

      private ExtensionPoint point
      reference to the extension point this extension implements *
    • plugin

      private final Bundle plugin
      declared plugin *
    • pointId

      private final String pointId
      point id
    • configurationElement

      ConfigurationElement[] configurationElement
      Configuration elements *
  • Constructor Details

  • Method Details

    • setExtensionPoint

      public void setExtensionPoint(ExtensionPoint point)
      Assign the ExtensionPoint to this Extension
      Parameters:
      point - The extension point
    • getExtensionPointId

      public String getExtensionPointId()
      Acessor to the extension point id
      Returns:
      extension point id
    • getPlugin

      public Bundle getPlugin()
      Accessor for the Plug-in that declared this Extension
      Returns:
      the Plug-in
    • getPoint

      public ExtensionPoint getPoint()
      Acessor for the ExtensionPoint that this Extension implements
      Returns:
      the ExtensionPoint
    • addConfigurationElement

      public void addConfigurationElement(ConfigurationElement element)
      Add a new child ConfigurationElement (declared nested in the extension XML element)
      Parameters:
      element - the ConfigurationElement
    • getConfigurationElements

      public ConfigurationElement[] getConfigurationElements()
      Acessor for all ConfigurationElements declared in the Extension
      Returns:
      array of ConfigurationElement