public interface ActionFactory
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clean up any resources this factory holds.
|
WaspAction |
getAction(Class<? extends WaspAction> waspActionClass)
Returns the registered action of this class.
|
WaspAction |
getAction(String actions)
Creates or reuses a WaspAction based on string values.
|
List<WaspAction> |
getRegisteredActions()
Returns a list of all the registered actions at the time of the invocation.
|
WaspAction |
register(Class<? extends WaspAction> waspActionClass,
String name)
Register a new action.
|
WaspAction getAction(String actions)
actions
- WaspAction register(Class<? extends WaspAction> waspActionClass, String name) throws RegistrationException
waspActionClass
- the class of the action to register (must be subclass of WaspAction
name
- the name to register the action withRegistrationException
- if the action cannot be registeredWaspAction getAction(Class<? extends WaspAction> waspActionClass)
waspActionClass
- a subclass of WaspAction
IllegalArgumentException
- if the class is not registered.List<WaspAction> getRegisteredActions()
void destroy()
Copyright © 2015. All rights reserved.