public interface Extension<A extends Action>
ActionFactorywhich is a factory class that knows how to create actions. The actions should be of the same class (or a subclass) as specified by the
ExtensionPoint.getActionClass()method of the extension point that the extension is extending.
Extensions can, for example, be created:
- Programmatically, using an
- Loaded from extension definition XML files using a
- Or, in any other way by providing a custom implementation of this interface.
Before an extension can be used it must be registered with
Registry.registerExtension(Extension, ClassLoader). The extension point that
the extension extends must of course already be registered in the same
- Last modified
- $Date: 2019-04-11 09:31:26 +0200 (tors, 11 apr. 2019) $
Modifier and Type Method Description
()Get information about the extensions.
ActionFactory<? extends A>
()Get the factory class for creating actions.
()Get the ID of the extension point this extension is extending.
()Get the ID of the extension.
()The extensions in an extension point are by default ordered by their index value.
RendererFactory<? super A>
()Get an optional factory class for creating renderers for the actions.
getIdString getId()Get the ID of the extension.
- A non-null unique identifier value
getExtendsString getExtends()Get the ID of the extension point this extension is extending.
- A non-null identifier value
getIndexfloat getIndex()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
- The index value
getAboutAbout getAbout()Get information about the extensions. This is optional, but we recommend that at least some documentation and contact information is given.
- Optional information about the extension
getActionFactoryGet 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.
- An action factory (required)
getRendererFactoryGet an optional factory class for creating renderers for the actions. This factory will only be used if the extension point allows it.
- A renderer factory or null
- See Also: