|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.extensions.ExtensionBean<A>
public class ExtensionBean<A extends Action>
A bean-like implementation of the Extension
interface.
This implementation adds setter methods for simple initialisation
of the bean properties.
Field Summary | |
---|---|
private About |
about
|
private ActionFactory<? extends A> |
actionFactory
|
private String |
extensionPoint
|
private String |
id
|
private float |
index
|
private RendererFactory<? super A> |
rendererFactory
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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.
Method Detail |
---|
public String toString()
toString
in class Object
public String getId()
Extension
getId
in interface Extension<A extends Action>
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.
getIndex
in interface Extension<A extends Action>
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
getAbout
in interface Extension<A extends Action>
public void setAbout(About about)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |