Modifier and Type | Field and Description |
---|---|
private Registry.RegisteredAbout |
about |
private ActionFactory<? extends A> |
actionFactory |
private ClassLoader |
classLoader |
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 and Description |
---|
RegisteredExtension(Extension<A> extension,
Registry.RegisteredExtensionPoint<? super A> rep,
ClassLoader classLoader)
Create a new registered extension by copying the
information from the parameter.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearError() |
About |
getAbout()
Get information about the extensions.
|
ActionFactory<? extends A> |
getActionFactory()
Get the factory class for creating actions.
|
(package private) ClassLoader |
getClassLoader() |
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,
ClassLoader classLoader)
Update the registered information.
|
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 ClassLoader classLoader
private Throwable lastError
RegisteredExtension(Extension<A> extension, Registry.RegisteredExtensionPoint<? super A> rep, ClassLoader classLoader)
public String getId()
Extension
public String getExtends()
Extension
getExtends
in interface Extension<A extends Action>
public float getIndex()
Extension
ExtensionsFilter
implementation.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
void update(Extension<A> extension, ClassLoader classLoader)
Registry.RegisteredExtensionPoint<? super A> getExtensionPoint()
ClassLoader getClassLoader()
void clearError()
Throwable getLastError()