|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionPoint<A extends Action>
An extension point is a place, defined by a client application, that
can be extended. Each extension point is identified by an ID which
must be unique. We recommend that ID:s are generated in the same
way as Java package names. An extension point must also define
what kind of Action
it is possible to add to it. This
is done with the getActionClass()
. It is also possible
to define a default render class and if an extension is allowed
to override it or not.
Extension points can, for example, be created:
ExtensionPointBean
object
XmlLoader
.
Before extension points can be used the must be registered with
Registry.registerExtensionPoint(ExtensionPoint)
. Extensions to
an extension point are registered in the same registry with
Registry.registerExtension(Extension)
. To load and use all
registered extensions use
Registry.useExtensions(ClientContext, ExtensionsFilter, String...)
.
ExtensionPointBean
,
XmlLoader
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. |
Method Detail |
---|
String getId()
String getName()
String getDescription()
Class<A> getActionClass()
Action
interface. Extensions that are extending this
extension point must provide an ActionFactory
that is capable
of creating instances of the specified class.
RendererFactory<? super A> getRendererFactory()
Renderer
instances. Renderers are not a required part of the extension
system, but will make it easier to write the code for extension
points.
boolean allowRendererOverride()
ErrorHandlerFactory<? super A> getErrorHandlerFactory()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |