org.yasl.arch.impl.application.config.elementhandlers
Class YASLConfigKeyResolver

java.lang.Object
  extended byorg.yasl.arch.impl.application.config.elementhandlers.YASLConfigKeyResolver
All Implemented Interfaces:
KeyResolver

public class YASLConfigKeyResolver
extends Object
implements KeyResolver

Version:
1.0
Author:
Jeff Chapman

Field Summary
static String KEY_ACTIONS
           
static String KEY_MENUBARS
           
static String KEY_MENUS
           
static String KEY_SINGLETONS
           
static String KEY_TEMPORARY
           
 
Constructor Summary
YASLConfigKeyResolver(YASLApplication app)
           
 
Method Summary
 Map getMenuBarMap()
           
 Map getMenusMap()
           
 Object getObject(String keyType, String key)
          Returns the requested object based on the keyType and key.
 void setObject(String keyType, String key, Object value)
          Sets the object in the storage facility based on keyType and key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

YASLConfigKeyResolver

public YASLConfigKeyResolver(YASLApplication app)
Method Detail

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 - String
key - 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 - String
key - String
value - Object
Throws:
KeyResolverException