|
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.RegisteredExtension<A>
static class Registry.RegisteredExtension<A extends Action>
Internal representation of an extension.
Field Summary | |
---|---|
private Registry.RegisteredAbout |
about
|
private ActionFactory<? extends A> |
actionFactory
|
private String |
extensionPoint
|
private String |
id
|
private float |
index
|
private Throwable |
lastError
|
private A |
lastErrorAction
|
private RendererFactory<? super A> |
rendererFactory
|
private Registry.RegisteredExtensionPoint<? super A> |
rep
|
Constructor Summary | |
---|---|
Registry.RegisteredExtension(Extension<A> extension,
Registry.RegisteredExtensionPoint<? super A> rep)
Create a new registered extension by copying the information from the parameter. |
Method Summary | |
---|---|
(package private) void |
clearError()
|
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. |
(package private) Registry.RegisteredExtensionPoint<? super A> |
getExtensionPoint()
Get the extension point this extension is registered with. |
String |
getId()
Get the ID of the extension. |
float |
getIndex()
The extensions in an extension point are by default ordered by their index value. |
(package private) Throwable |
getLastError()
|
RendererFactory<? super A> |
getRendererFactory()
Get an optional factory class for creating renderers for the actions. |
(package private) void |
setError(A action,
Throwable t)
|
String |
toString()
|
(package private) void |
update(Extension<A> extension)
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 Registry.RegisteredExtensionPoint<? super A extends Action> rep
private final String id
private final String extensionPoint
private Registry.RegisteredAbout about
private float index
private ActionFactory<? extends A extends Action> actionFactory
private RendererFactory<? super A extends Action> rendererFactory
private Throwable lastError
private A extends Action lastErrorAction
Constructor Detail |
---|
Registry.RegisteredExtension(Extension<A> extension, Registry.RegisteredExtensionPoint<? super A> rep)
Method Detail |
---|
public String getId()
Extension
getId
in interface Extension<A extends Action>
public String getExtends()
Extension
getExtends
in interface Extension<A extends Action>
public float getIndex()
Extension
ExtensionsFilter
implementation.
getIndex
in interface Extension<A extends Action>
public ActionFactory<? extends A> getActionFactory()
Extension
ExtensionPoint.getActionClass()
method of the extended extension point returns.
getActionFactory
in interface Extension<A extends Action>
public RendererFactory<? super A> getRendererFactory()
Extension
getRendererFactory
in interface Extension<A extends Action>
ExtensionPoint.allowRendererOverride()
public About getAbout()
Extension
getAbout
in interface Extension<A extends Action>
public String toString()
toString
in class Object
void update(Extension<A> extension)
Registry.RegisteredExtensionPoint<? super A> getExtensionPoint()
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 |