public class ExtensionBean<A extends Action> extends Object implements Extension<A>
Extension
interface.
This implementation adds setter methods for simple initialisation
of the bean properties.Modifier and Type | Field and Description |
---|---|
private About |
about |
private ActionFactory<? extends A> |
actionFactory |
private String |
extensionPoint |
private String |
id |
private float |
index |
private RendererFactory<? super A> |
rendererFactory |
Constructor and Description |
---|
ExtensionBean()
Create a new empty extension bean.
|
ExtensionBean(String id,
String extensionPoint,
float position,
About about,
ActionFactory<? extends A> actionFactory,
RendererFactory<? super A> rendererFactory)
Create a new fully initialised extension bean.
|
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.
|
void |
setAbout(About about) |
void |
setActionFactory(ActionFactory<? extends A> actionFactory) |
void |
setExtends(String extensionPoint) |
void |
setId(String id) |
void |
setIndex(float index) |
void |
setRendererFactory(RendererFactory<? super A> rendererFactory) |
String |
toString() |
private String id
private String extensionPoint
private ActionFactory<? extends A extends Action> actionFactory
private RendererFactory<? super A extends Action> rendererFactory
private About about
private float index
public ExtensionBean()
Registry.registerExtension(Extension)
.public ExtensionBean(String id, String extensionPoint, float position, About about, ActionFactory<? extends A> actionFactory, RendererFactory<? super A> rendererFactory)
Extension
interface for a description of the parameters.public String getId()
Extension
public void setId(String id)
public String getExtends()
Extension
getExtends
in interface Extension<A extends Action>
public void setExtends(String extensionPoint)
public float getIndex()
Extension
ExtensionsFilter
implementation.public void setIndex(float index)
public ActionFactory<? extends A> getActionFactory()
Extension
ExtensionPoint.getActionClass()
method of the extended extension point returns.getActionFactory
in interface Extension<A extends Action>
public void setActionFactory(ActionFactory<? extends A> actionFactory)
public RendererFactory<? super A> getRendererFactory()
Extension
getRendererFactory
in interface Extension<A extends Action>
ExtensionPoint.allowRendererOverride()
public void setRendererFactory(RendererFactory<? super A> rendererFactory)
public About getAbout()
Extension
public void setAbout(About about)