public class Actions extends Object
ActionFactory
s. There can only be one Actions in each
virtual machine. Having a separate instance where all the ActionFactories are registered makes it
easier to use them outside wicket because there now is a single (non wicket) point of entry.
ActionFactory
s should not be shared.Modifier and Type | Method and Description |
---|---|
static ActionFactory |
getActionFactory(Object key)
Returns the ActionFactory stored with the key.
|
static void |
registerActionFactory(Object key,
ActionFactory factory)
Registers a new ActionFactory for anybody knowing the right key to be retrieved.
|
static ActionFactory |
unregisterActionFactory(Object key)
Removes the registration of a single ActionFactory.
|
public static ActionFactory getActionFactory(Object key)
key
- the keypublic static void registerActionFactory(Object key, ActionFactory factory)
key
- the key to store the factory with.factory
- the ActionFactory.IllegalArgumentException
- if the factory is null if an attempt is made to overwrite the registration.unregisterActionFactory(Object)
public static ActionFactory unregisterActionFactory(Object key)
key
- the key the factory is registered withCopyright © 2015. All rights reserved.