|
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.Registry.RegisteredExtensionPoint<A>
static class Registry.RegisteredExtensionPoint<A extends Action>
Internal representation of an extension point.
Field Summary | |
---|---|
private Class<A> |
actionClass
|
private boolean |
allowRendererOverride
|
private String |
description
|
private ErrorHandlerFactory<? super A> |
errorHandlerFactory
|
private Map<String,Registry.RegisteredExtension<A>> |
extensions
|
private String |
id
|
private Throwable |
lastError
|
private A |
lastErrorAction
|
private String |
name
|
private RendererFactory<? super A> |
rendererFactory
|
Constructor Summary | |
---|---|
Registry.RegisteredExtensionPoint(ExtensionPoint<A> ep)
Create a new registered extension point by copying the information from the parameter. |
Method Summary | |
---|---|
(package private) void |
addExtension(Registry.RegisteredExtension<A> extension)
Add an extension to this extension point. |
boolean |
allowRendererOverride()
If an extension is allowed to override the renderer factory with an implementation of its own. |
(package private) void |
clearError()
|
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. |
(package private) Collection<Registry.RegisteredExtension<A>> |
getExtensions()
Get all extensions registered with this extension point. |
String |
getId()
Get the ID of the extension point. |
(package private) Throwable |
getLastError()
|
String |
getName()
Get the name of the extension point. |
RendererFactory<? super A> |
getRendererFactory()
This is an optional factory for creating Renderer
instances. |
(package private) void |
removeExtension(String id)
Remove the extension with a given ID. |
(package private) void |
setError(A action,
Throwable t)
|
String |
toString()
|
(package private) void |
update(ExtensionPoint<A> ep)
Update the registered information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String id
private final Class<A extends Action> actionClass
private final Map<String,Registry.RegisteredExtension<A extends Action>> extensions
private String name
private String description
private RendererFactory<? super A extends Action> rendererFactory
private boolean allowRendererOverride
private ErrorHandlerFactory<? super A extends Action> errorHandlerFactory
private Throwable lastError
private A extends Action lastErrorAction
Constructor Detail |
---|
Registry.RegisteredExtensionPoint(ExtensionPoint<A> ep)
Method Detail |
---|
public String getId()
ExtensionPoint
getId
in interface ExtensionPoint<A extends Action>
public String getName()
ExtensionPoint
getName
in interface ExtensionPoint<A extends Action>
public String getDescription()
ExtensionPoint
getDescription
in interface ExtensionPoint<A extends Action>
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 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 boolean allowRendererOverride()
ExtensionPoint
allowRendererOverride
in interface ExtensionPoint<A extends Action>
public ErrorHandlerFactory<? super A> getErrorHandlerFactory()
ExtensionPoint
getErrorHandlerFactory
in interface ExtensionPoint<A extends Action>
public String toString()
toString
in class Object
void update(ExtensionPoint<A> ep)
void addExtension(Registry.RegisteredExtension<A> extension)
void removeExtension(String id)
Collection<Registry.RegisteredExtension<A>> getExtensions()
void setError(A action, Throwable t)
void clearError()
Throwable getLastError()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |