public interface ExtensionPoint<A extends Action>
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
Modifier and Type | Method and Description |
---|---|
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. |
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()