|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActionFactoryInterface
Implementations of this interface should initiate an action pool and associate these with an id. An action factory should be implemented as a singleton.
| Method Summary | ||
|---|---|---|
void |
destroy()
|
|
AbstractAction |
getAbstractAction(java.lang.String actionId,
Event event)
Returns a new action ready for running. |
|
|
getId(java.lang.Class<D> action)
|
|
void |
init(ActionServlet servlet)
Initiate the factory. |
|
void |
setLastEvent(Event event)
Useful to store information about the last event. |
|
| Method Detail |
|---|
void init(ActionServlet servlet)
AbstractAction getAbstractAction(java.lang.String actionId,
Event event)
actionId - to look forevent - that this action is part of
void setLastEvent(Event event)
event - that was last run.<D extends AbstractAction> java.lang.String getId(java.lang.Class<D> action)
D - any action that extends AbstractActionaction - class to get the id of
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||