org.kuali.rice.xml.ingest
Class RiceConfigUtils

java.lang.Object
  extended by org.kuali.rice.xml.ingest.RiceConfigUtils

public class RiceConfigUtils
extends Object

Utility class to handle PropertySources and Rice config files.

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

Constructor Summary
RiceConfigUtils()
           
 
Method Summary
static void add(Properties oldProps, Properties newProps)
           
static void addAndOverride(Properties oldProps, Properties newProps)
           
static Properties getProperties(Config config)
           
static Config getRootConfig(Properties loaded, String location, javax.servlet.ServletContext servletContext)
           
static void override(Properties oldProps, Properties newProps)
           
static JAXBConfigImpl parseAndInit(String location)
          Parse the configuration stored at location AND invoke ConfigContext.init(config)
static JAXBConfigImpl parseConfig(String location)
          Parse the configuration stored at location
static JAXBConfigImpl parseConfig(String location, Properties properties)
          Parse the configuration stored at location
static void putProperties(Config config, Properties properties)
          Iterate over the list of key/value pairs from properties and invoke config.putProperty(key,value)
protected static String toLogMsg(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiceConfigUtils

public RiceConfigUtils()
Method Detail

getRootConfig

public static Config getRootConfig(Properties loaded,
                                   String location,
                                   javax.servlet.ServletContext servletContext)

putProperties

public static void putProperties(Config config,
                                 Properties properties)
Iterate over the list of key/value pairs from properties and invoke config.putProperty(key,value)


parseConfig

public static JAXBConfigImpl parseConfig(String location)
Parse the configuration stored at location


parseConfig

public static JAXBConfigImpl parseConfig(String location,
                                         Properties properties)
Parse the configuration stored at location


parseAndInit

public static JAXBConfigImpl parseAndInit(String location)
Parse the configuration stored at location AND invoke ConfigContext.init(config)


getProperties

public static Properties getProperties(Config config)

addAndOverride

public static void addAndOverride(Properties oldProps,
                                  Properties newProps)

override

public static void override(Properties oldProps,
                            Properties newProps)

add

public static void add(Properties oldProps,
                       Properties newProps)

toLogMsg

protected static String toLogMsg(String key,
                                 String value)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.