public class ActionManager
extends java.lang.Object
Constructor and Description |
---|
ActionManager(Logging.Logger logger)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Action action)
Adds an
Action to the system. |
void |
add(Action[] actions)
Adds an array of
Action s to the system. |
ActionPackage[] |
getActionPackages()
Returns the
ActionPackage s registered in the system. |
Action[] |
getActions()
Returns all
Action s registered in the system. |
(package private) Action[] |
getActions(java.util.Map<java.lang.String,Context> contexts)
Returns all
Action s except ContextDependentAction s and
ContextDestructorAction s for which no context exists or where the
context is expired. |
void |
removeAll()
Removes all
Action s from the system. |
public ActionManager(Logging.Logger logger)
logger
- The Logging.Logger
to use.public void add(Action action)
Action
to the system.Action
s with a minimum required library version higher than
the this' ACIS.LIBRARY_VERSION
are not added.action
- The Action
to add.public void add(Action[] actions)
Action
s to the system. Note: Action
s
with a minimum required library version higher than the this'
ACIS.LIBRARY_VERSION
are not added.actions
- The Action
array.public Action[] getActions()
Action
s registered in the system.Action
array.Action[] getActions(java.util.Map<java.lang.String,Context> contexts)
Action
s except ContextDependentAction
s and
ContextDestructorAction
s for which no context exists or where the
context is expired.contexts
- An array of context ids.Action
array including
ContextDependentAction
s and
ContextDestructorAction
s for the context ids given in
contexts
.public ActionPackage[] getActionPackages()
ActionPackage
s registered in the system.ActionPackage
array.public void removeAll()
Action
s from the system.