|
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.ExtensionPointBean<A>
public class ExtensionPointBean<A extends Action>
A bean-like implementation of the ExtensionPoint
interface. This implementation adds setter methods for simple
initialisation of the bean properties.
Field Summary | |
---|---|
private Class<A> |
actionClass
|
private boolean |
allowRendererOverride
|
private String |
description
|
private ErrorHandlerFactory<? super A> |
errorHandlerFactory
|
private String |
id
|
private String |
name
|
private RendererFactory<? super A> |
rendererFactory
|
Constructor Summary | |
---|---|
ExtensionPointBean()
Create a new empty extension point bean. |
|
ExtensionPointBean(String id,
String name,
String description,
Class<A> actionClass,
RendererFactory<A> rendererFactory,
boolean allowRendererOverride)
Create a new fully initialised extension point bean. |
Method Summary | |
---|---|
boolean |
allowRendererOverride()
If an extension is allowed to override the renderer factory with an implementation of its own. |
Class<A> |
getActionClass()
Get the class object that represents the type of action that can be added to this extension point. |
String |
getDescription()
Get a description of the extension point. |
ErrorHandlerFactory<? super A> |
getErrorHandlerFactory()
Get the error handler factory that should be used with this extension point. |
String |
getId()
Get the ID of the extension point. |
String |
getName()
Get the name of the extension point. |
RendererFactory<? super A> |
getRendererFactory()
This is an optional factory for creating Renderer
instances. |
void |
setActionClass(Class<A> actionClass)
|
void |
setAllowRendererOverrider(boolean allowRendererOverride)
|
void |
setDescription(String description)
|
void |
setErrorHandlerFactory(ErrorHandlerFactory<? super A> errorHandlerFactory)
|
void |
setId(String id)
|
void |
setName(String name)
|
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 name
private String description
private Class<A extends Action> actionClass
private RendererFactory<? super A extends Action> rendererFactory
private boolean allowRendererOverride
private ErrorHandlerFactory<? super A extends Action> errorHandlerFactory
Constructor Detail |
---|
public ExtensionPointBean()
Registry.registerExtensionPoint(ExtensionPoint)
.
public ExtensionPointBean(String id, String name, String description, Class<A> actionClass, RendererFactory<A> rendererFactory, boolean allowRendererOverride)
ExtensionPoint
interface for a description of the
parameters.
Method Detail |
---|
public String toString()
toString
in class Object
public String getId()
ExtensionPoint
getId
in interface ExtensionPoint<A extends Action>
public void setId(String id)
public String getName()
ExtensionPoint
getName
in interface ExtensionPoint<A extends Action>
public void setName(String name)
public String getDescription()
ExtensionPoint
getDescription
in interface ExtensionPoint<A extends Action>
public void setDescription(String description)
public Class<A> getActionClass()
ExtensionPoint
Action
interface. Extensions that are extending this
extension point must provide an ActionFactory
that is capable
of creating instances of the specified class.
getActionClass
in interface ExtensionPoint<A extends Action>
public void setActionClass(Class<A> actionClass)
public RendererFactory<? super A> getRendererFactory()
ExtensionPoint
Renderer
instances. Renderers are not a required part of the extension
system, but will make it easier to write the code for extension
points.
getRendererFactory
in interface ExtensionPoint<A extends Action>
public void setRendererFactory(RendererFactory<? super A> rendererFactory)
public boolean allowRendererOverride()
ExtensionPoint
allowRendererOverride
in interface ExtensionPoint<A extends Action>
public void setAllowRendererOverrider(boolean allowRendererOverride)
public ErrorHandlerFactory<? super A> getErrorHandlerFactory()
ExtensionPoint
getErrorHandlerFactory
in interface ExtensionPoint<A extends Action>
public void setErrorHandlerFactory(ErrorHandlerFactory<? super A> errorHandlerFactory)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |