public interface Extension<A extends Action>
ActionFactory
which 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.
If the extension point allows it, the extension may also provide a
RendererFactory
. See ExtensionPoint.allowRendererOverride()
.
Extensions can, for example, be created:
ExtensionBean
object.
XmlLoader
.
Before an extension can be used it must be registered with
Registry.registerExtension(Extension)
. The extension point that
the extension extends must of course already be registered in the same
registry.
Modifier and Type | Method and Description |
---|---|
About |
getAbout()
Get information about the extensions.
|
ActionFactory<? extends A> |
getActionFactory()
Get the factory class for creating actions.
|
String |
getExtends()
Get the ID of the extension point this extension is extending.
|
String |
getId()
Get the ID of the extension.
|
float |
getIndex()
The extensions in an extension point are by default ordered by their
index value.
|
RendererFactory<? super A> |
getRendererFactory()
Get an optional factory class for creating renderers for the actions.
|
String getId()
String getExtends()
float getIndex()
ExtensionsFilter
implementation.About getAbout()
ActionFactory<? extends A> getActionFactory()
ExtensionPoint.getActionClass()
method of the extended extension point returns.RendererFactory<? super A> getRendererFactory()
ExtensionPoint.allowRendererOverride()