Class Registry.RegisteredExtension<A extends Action>

java.lang.Object
net.sf.basedb.util.extensions.Registry.RegisteredExtension<A>
All Implemented Interfaces:
Extension<A>
Enclosing class:
Registry

static class Registry.RegisteredExtension<A extends Action>
extends Object
implements Extension<A>
Internal representation of an extension.
  • Field Details

  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: Extension
      Get the ID of the extension.
      Specified by:
      getId in interface Extension<A extends Action>
      Returns:
      A non-null unique identifier value
    • getExtends

      public String getExtends()
      Description copied from interface: Extension
      Get the ID of the extension point this extension is extending.
      Specified by:
      getExtends in interface Extension<A extends Action>
      Returns:
      A non-null identifier value
    • getIndex

      public float getIndex()
      Description copied from interface: Extension
      The extensions in an extension point are by default ordered by their index value. Extensions with a low value are ordered before extensions with a high value. The ordering may be overridden by providing an external ExtensionsFilter implementation.
      Specified by:
      getIndex in interface Extension<A extends Action>
      Returns:
      The index value
    • getActionFactory

      public ActionFactory<? extends A> getActionFactory()
      Description copied from interface: Extension
      Get the factory class for creating actions. The factory must create objects of the same class or a subclass as the ExtensionPoint.getActionClass() method of the extended extension point returns.
      Specified by:
      getActionFactory in interface Extension<A extends Action>
      Returns:
      An action factory (required)
    • getRendererFactory

      public RendererFactory<? super A> getRendererFactory()
      Description copied from interface: Extension
      Get an optional factory class for creating renderers for the actions. This factory will only be used if the extension point allows it.
      Specified by:
      getRendererFactory in interface Extension<A extends Action>
      Returns:
      A renderer factory or null
      See Also:
      ExtensionPoint.allowRendererOverride()
    • getAbout

      public About getAbout()
      Description copied from interface: Extension
      Get information about the extensions. This is optional, but we recommend that at least some documentation and contact information is given.
      Specified by:
      getAbout in interface Extension<A extends Action>
      Returns:
      Optional information about the extension
    • toString

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

      void update​(Extension<A> extension, ClassLoader classLoader)
      Update the registered information.
    • getExtensionPoint

      Registry.RegisteredExtensionPoint<? super A> getExtensionPoint()
      Get the extension point this extension is registered with.
    • getClassLoader

      ClassLoader getClassLoader()
      Since:
      3.2
    • setError

      void setError​(A action, Throwable t)
    • clearError

      void clearError()
    • getLastError

      Throwable getLastError()