org.kuali.rice.core.framework.config.property
Class SimpleConfig

java.lang.Object
  extended by org.kuali.rice.core.framework.config.property.AbstractBaseConfig
      extended by org.kuali.rice.core.framework.config.property.SimpleConfig
All Implemented Interfaces:
Config
Direct Known Subclasses:
ConfigParserImplConfig

public class SimpleConfig
extends AbstractBaseConfig

Base config implementation that does not support file parsing.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
protected  Map<String,Object> configs
           
protected  List<String> fileLocs
           
protected  Properties propertiesUsed
           
 
Fields inherited from interface org.kuali.rice.core.api.config.property.Config
ALT_OJB_FILE, ALT_SPRING_FILE, APPLICATION_NAME, APPLICATION_VERSION, BAM_ENABLED, BASE_WEB_SERVICE_URL_WORKFLOW_CLIENT_FILE, BASE_WEB_SERVICE_WSDL_PATH, BATCH_MODE, CREDENTIALS_SOURCE_FACTORY, DATASOURCE_DRIVER_NAME, DATASOURCE_OJB_SEQUENCE_MANAGER, DATASOURCE_OJB_SEQUENCE_MANAGER_CLASS, DATASOURCE_PASSWORD, DATASOURCE_PLATFORM, DATASOURCE_POOL_MAX_SIZE, DATASOURCE_POOL_MAXWAIT, DATASOURCE_POOL_MIN_SIZE, DATASOURCE_POOL_VALIDATION_QUERY, DATASOURCE_URL, DATASOURCE_USERNAME, DEFAULT_KEW_NOTE_CLASS, DEV_MODE, DOCUMENT_LOCK_TIMEOUT, EDL_CONFIG_LOCATION, EMAIL_SECURITY_PATH, EMBEDDED_PLUGIN_DEFAULT_CURRENT_CLASS_LOADER, EMBEDDED_PLUGIN_LOCATIAON, ENABLE_EMAIL_REMINDER_LIFECYCLE, ENABLE_XML_PIPELINE_LIFECYCLE, ENVIRONMENT, EXTRA_CLASSES_DIR, EXTRA_LIB_DIR, FIRST_DAILY_EMAIL_DELIVERY_DATE, FIRST_WEEKLY_EMAIL_DELIVERY_DATE, KEN_URL, KEW_URL, KEYSTORE_ALIAS, KEYSTORE_FILE, KEYSTORE_PASSWORD, KIM_URL, KR_URL, LOG4J_SETTINGS_PATH, LOG4J_SETTINGS_PROPS, LOG4J_SETTINGS_RELOADINTERVAL_MINS, LOG4J_SETTINGS_XML, M_BEANS, MESSAGE_PERSISTENCE, MODULE_NAME, NODE_PROPERTIES_PATH, OJB_PLATFORM, OUT_BOX_MODE, PLUGIN_DIR, PROD_ENVIRONMENT_CODE, REFRESH_RATE, RICE_VERSION, SERVICE_SERVLET_URL, THREAD_POOL_SIZE, TRANSACTION_TIMEOUT, VERSION, WEB_SERVICE_CONNECT_RETRY, WSDL_LOCATION_WORKFLOW_CLIENT_FILE
 
Constructor Summary
SimpleConfig()
           
SimpleConfig(List<String> fileLocs)
           
SimpleConfig(List<String> fileLocs, Properties baseProperties)
           
SimpleConfig(Properties properties)
           
SimpleConfig(String fileLoc)
           
SimpleConfig(String fileLoc, Properties baseProperties)
           
 
Method Summary
protected  void configureBuiltIns(Properties properties)
          Configures built-in properties.
 Map<String,Object> getBaseObjects()
           
 Properties getBaseProperties()
           
 Object getObject(String key)
           
 Map<String,Object> getObjects()
           
 Properties getProperties()
          Returns properties explicitly configured in this Config
 String getProperty(String key)
           
 void parseConfig()
           
 void putConfig(Config config)
          This method takes a config object and merges it with the current object.
 void putObject(String key, Object value)
           
 void putObjects(Map<String,Object> objects)
           
 void putProperties(Properties properties)
           
 void putProperty(String key, String value)
           
 void removeObject(String key)
           
 void removeProperty(String key)
           
 String toString()
           
 
Methods inherited from class org.kuali.rice.core.framework.config.property.AbstractBaseConfig
getAlternateOJBFile, getAlternateSpringFile, getApplicationName, getApplicationVersion, getBaseWebServiceURL, getBaseWebServiceWsdlPath, getBatchMode, getBooleanProperty, getBooleanProperty, getClientWSDLFullPathAndFileName, getDailyEmailFirstDeliveryDate, getDefaultKewNoteClass, getDevMode, getDocumentLockTimeout, getEDLConfigLocation, getEmailConfigurationPath, getEmailReminderLifecycleEnabled, getEmbeddedPluginLocation, getEndPointUrl, getEnvironment, getKENBaseURL, getKEWBaseURL, getKeystoreAlias, getKeystoreFile, getKeystorePassword, getKIMBaseURL, getKRBaseURL, getLog4jFileLocation, getLog4jReloadInterval, getNumericProperty, getNumericProperty, getOutBoxOn, getProductionEnvironmentCode, getPropertiesWithPrefix, getRefreshRate, getRiceVersion, getTransactionTimeout, getWebServicesConnectRetry, getWeeklyEmailFirstDeliveryDate, getXmlPipelineLifeCycleEnabled, isProductionEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configs

protected Map<String,Object> configs

fileLocs

protected final List<String> fileLocs

propertiesUsed

protected Properties propertiesUsed
Constructor Detail

SimpleConfig

public SimpleConfig()

SimpleConfig

public SimpleConfig(String fileLoc)

SimpleConfig

public SimpleConfig(List<String> fileLocs)

SimpleConfig

public SimpleConfig(Properties properties)

SimpleConfig

public SimpleConfig(String fileLoc,
                    Properties baseProperties)

SimpleConfig

public SimpleConfig(List<String> fileLocs,
                    Properties baseProperties)
Method Detail

parseConfig

public void parseConfig()
                 throws IOException
Specified by:
parseConfig in interface Config
Specified by:
parseConfig in class AbstractBaseConfig
Throws:
IOException

configureBuiltIns

protected void configureBuiltIns(Properties properties)
Configures built-in properties.


getBaseObjects

public Map<String,Object> getBaseObjects()

getBaseProperties

public Properties getBaseProperties()

getProperties

public Properties getProperties()
Description copied from interface: Config
Returns properties explicitly configured in this Config

Specified by:
getProperties in interface Config
Specified by:
getProperties in class AbstractBaseConfig
Returns:
properties explicitly configured in this Config

getProperty

public String getProperty(String key)
Specified by:
getProperty in interface Config
Specified by:
getProperty in class AbstractBaseConfig

getObjects

public Map<String,Object> getObjects()
Specified by:
getObjects in interface Config
Specified by:
getObjects in class AbstractBaseConfig

getObject

public Object getObject(String key)
Specified by:
getObject in interface Config
Specified by:
getObject in class AbstractBaseConfig

putProperties

public void putProperties(Properties properties)

putProperty

public void putProperty(String key,
                        String value)

putObject

public void putObject(String key,
                      Object value)

putObjects

public void putObjects(Map<String,Object> objects)

removeObject

public void removeObject(String key)

removeProperty

public void removeProperty(String key)

putConfig

public void putConfig(Config config)
Description copied from interface: Config
This method takes a config object and merges it with the current object.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.