Class ExtensionBean<A extends Action>

java.lang.Object
net.sf.basedb.util.extensions.ExtensionBean<A>
All Implemented Interfaces:
Extension<A>

public class ExtensionBean<A extends Action>
extends Object
implements Extension<A>
A bean-like implementation of the Extension interface. This implementation adds setter methods for simple initialisation of the bean properties.
Version:
2.7
Author:
nicklas
Last modified
$Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • setId

      public void setId​(String id)
    • 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
    • setExtends

      public void setExtends​(String extensionPoint)
    • 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
    • setIndex

      public void setIndex​(float index)
    • 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)
    • setActionFactory

      public void setActionFactory​(ActionFactory<? extends A> actionFactory)
    • 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()
    • setRendererFactory

      public void setRendererFactory​(RendererFactory<? super A> rendererFactory)
    • 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
    • setAbout

      public void setAbout​(About about)