|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Extension<A extends Action>
Represents a concrete implementation of an extension to an
extension point. Each extension must have a unique ID. We recommend
that ID:s are generated in the same way as Java package names.
An extension defines an ActionFactory
which is a factory class
that knows how to create actions. The actions should be of the same
class (or a subclass) as specified by the
ExtensionPoint.getActionClass()
method of the extension point that
the extension is extending.
If the extension point allows it, the extension may also provide a
RendererFactory
. See ExtensionPoint.allowRendererOverride()
.
Extensions can, for example, be created:
ExtensionBean
object.
XmlLoader
.
Before an extension can be used it must be registered with
Registry.registerExtension(Extension)
. The extension point that
the extension extends must of course already be registered in the same
registry.
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. |
Method Detail |
---|
String getId()
String getExtends()
float getIndex()
ExtensionsFilter
implementation.
About getAbout()
ActionFactory<? extends A> getActionFactory()
ExtensionPoint.getActionClass()
method of the extended extension point returns.
RendererFactory<? super A> getRendererFactory()
ExtensionPoint.allowRendererOverride()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |