com.ideo.sweetdevria.config
Class RIAConfigImpl

java.lang.Object
  extended by com.ideo.sweetdevria.config.RIAConfigImpl
All Implemented Interfaces:
IRIAConfig, java.io.Serializable

public class RIAConfigImpl
extends java.lang.Object
implements java.io.Serializable, IRIAConfig

RIA configuration implementation.

See Also:
Serialized Form

Field Summary
protected  java.util.HashMap builderConfigs
           
protected  boolean configured
           
protected  java.util.HashMap drawerConfigs
           
protected  java.util.HashMap messageResources
           
protected  java.util.List messageResourcesOrder
           
protected  java.util.ArrayList plugIns
           
protected  java.util.Map properties
           
 
Constructor Summary
RIAConfigImpl()
           
 
Method Summary
 void addBuilderConfig(BuilderConfig config)
          Add a builder config to the object The add is processed from the HIGHER to the LOWER important element.
 void addDrawerConfig(DrawerConfig config)
          Add a new DrawerConfig instance to the set The add is processed from the HIGHER to the LOWER important element.
 void addMessageResourcesConfig(MessageResourcesConfig config)
          Add a message resources config to the object The add is processed from the HIGHER to the LOWER important element.
 void addPlugInConfig(PlugInConfig plugInConfig)
           
 void addPropertyConfig(PropertyConfig propertyConfig)
           
 BuilderConfig findBuilderConfig(java.lang.String id)
          Return the builder configuration for the specified id otherwise return null/code>
 DrawerConfig findDrawerConfig(java.lang.String drawerId)
          Return the drawer configuration for the specified id, if any; otherwise return null.
 DrawerConfig[] findDrawerConfigs()
          Return the drawer configurations.
 MessageResourcesConfig findMessageResourcesConfig(java.lang.String key)
           
 MessageResourcesConfig[] findMessageResourcesConfigs()
           
 PlugInConfig[] findPlugInConfigs()
           
 void freeze()
           
 boolean getConfigured()
          Get the configured.
 java.util.Map getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 void setConfigured(boolean configured)
          Set the configured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageResources

protected java.util.HashMap messageResources

messageResourcesOrder

protected java.util.List messageResourcesOrder

configured

protected boolean configured

builderConfigs

protected java.util.HashMap builderConfigs

drawerConfigs

protected java.util.HashMap drawerConfigs

plugIns

protected java.util.ArrayList plugIns

properties

protected java.util.Map properties
Constructor Detail

RIAConfigImpl

public RIAConfigImpl()
Method Detail

getConfigured

public boolean getConfigured()
Get the configured.

Returns:
Returns the configured.

addMessageResourcesConfig

public void addMessageResourcesConfig(MessageResourcesConfig config)
Add a message resources config to the object The add is processed from the HIGHER to the LOWER important element.

Parameters:
config - the new message resources config

addPlugInConfig

public void addPlugInConfig(PlugInConfig plugInConfig)

addPropertyConfig

public void addPropertyConfig(PropertyConfig propertyConfig)

getProperties

public java.util.Map getProperties()
Specified by:
getProperties in interface IRIAConfig

getProperty

public java.lang.String getProperty(java.lang.String key)
Specified by:
getProperty in interface IRIAConfig

findMessageResourcesConfig

public MessageResourcesConfig findMessageResourcesConfig(java.lang.String key)
Specified by:
findMessageResourcesConfig in interface IRIAConfig

findMessageResourcesConfigs

public MessageResourcesConfig[] findMessageResourcesConfigs()
Specified by:
findMessageResourcesConfigs in interface IRIAConfig

freeze

public void freeze()
Specified by:
freeze in interface IRIAConfig

addBuilderConfig

public void addBuilderConfig(BuilderConfig config)
Add a builder config to the object The add is processed from the HIGHER to the LOWER important element.

Parameters:
config - the new builder config

setConfigured

public void setConfigured(boolean configured)
Set the configured.

Parameters:
configured - The configured to set.

findBuilderConfig

public BuilderConfig findBuilderConfig(java.lang.String id)
Return the builder configuration for the specified id otherwise return null/code>

Specified by:
findBuilderConfig in interface IRIAConfig
Parameters:
id - Id of the builder configuration to return

addDrawerConfig

public void addDrawerConfig(DrawerConfig config)
Add a new DrawerConfig instance to the set The add is processed from the HIGHER to the LOWER important element.

Parameters:
config - The new configuration instance to be added
Throws:
java.lang.IllegalStateException - if this module configuration has been frozen

findDrawerConfig

public DrawerConfig findDrawerConfig(java.lang.String drawerId)
Return the drawer configuration for the specified id, if any; otherwise return null.

Specified by:
findDrawerConfig in interface IRIAConfig
Parameters:
drawerId - ID of the drawer configuration to return.

findDrawerConfigs

public DrawerConfig[] findDrawerConfigs()
Return the drawer configurations. If there are none, a zero-length array is returned.

Specified by:
findDrawerConfigs in interface IRIAConfig

findPlugInConfigs

public PlugInConfig[] findPlugInConfigs()
Specified by:
findPlugInConfigs in interface IRIAConfig


Copyright © 2010 Ideo Technologies. All Rights Reserved.