|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionFactory<A extends Action>
An action factory is an object which knows how to create
Action
:s. Action factories are part of an extension
(see Extension.getActionFactory()
).
Action factory implementations must be thread-safe, since a single instance of the factory may have to serve multiple requests at the same time.
Note 1! A single factory instance may be used by more than one extension. This is at the control of the client application.
Note 2! The BASE web-client uses the XmlLoader
to
define extensions. The XmlLoader
always create a
separate factory instance for each extension. The XmlLoader
also requires that the factories has a public no-argument constructor.
Method Summary | |
---|---|
A[] |
getActions(InvokationContext<? super A> context)
This method may be called one or several times for each request. |
boolean |
prepareContext(InvokationContext<? super A> context)
This method is called once for each request/use of an extension and have two purposes: The factory should decide if the extension should be enabled or not. |
Method Detail |
---|
boolean prepareContext(InvokationContext<? super A> context)
JspContext
.
context
- The current invokation context
A[] getActions(InvokationContext<? super A> context)
context
- The current invokation context
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |