org.yasl.arch.impl.application.config.elementhandlers
Class YASLConfigKeyResolver
java.lang.Object
org.yasl.arch.impl.application.config.elementhandlers.YASLConfigKeyResolver
- All Implemented Interfaces:
- KeyResolver
- public class YASLConfigKeyResolver
- extends Object
- implements KeyResolver
- Version:
- 1.0
- Author:
- Jeff Chapman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_SINGLETONS
public static final String KEY_SINGLETONS
- See Also:
- Constant Field Values
KEY_ACTIONS
public static final String KEY_ACTIONS
- See Also:
- Constant Field Values
KEY_MENUS
public static final String KEY_MENUS
- See Also:
- Constant Field Values
KEY_MENUBARS
public static final String KEY_MENUBARS
- See Also:
- Constant Field Values
KEY_TEMPORARY
public static final String KEY_TEMPORARY
- See Also:
- Constant Field Values
YASLConfigKeyResolver
public YASLConfigKeyResolver(YASLApplication app)
getMenusMap
public Map getMenusMap()
getMenuBarMap
public Map getMenuBarMap()
getObject
public Object getObject(String keyType,
String key)
throws KeyResolverException
- Returns the requested object based on the keyType and key.
Returns null if the key does not exist.
Throws exception if the keyType is invalid.
- Specified by:
getObject
in interface KeyResolver
- Parameters:
keyType
- Stringkey
- String
- Returns:
- Object
- Throws:
KeyResolverException
setObject
public void setObject(String keyType,
String key,
Object value)
throws KeyResolverException
- Sets the object in the storage facility based on keyType and key.
Throws exception if the keyType is invalid.
- Specified by:
setObject
in interface KeyResolver
- Parameters:
keyType
- Stringkey
- Stringvalue
- Object
- Throws:
KeyResolverException