public class RiceConfigUtils extends Object
PropertySources and Rice config files.| Modifier and Type | Method and Description |
|---|---|
static Properties |
getProperties(Config config)
Returns the
Properties from the given config. |
static Config |
getRootConfig(Properties loaded,
String location,
javax.servlet.ServletContext servletContext)
Gets the
Config from both the current configuration and the ones in loaded, at location,
and in the servletContext. |
static org.kuali.rice.core.impl.config.property.JAXBConfigImpl |
parseAndInit(String location)
Parse the configuration stored at
location and initialize. |
static org.kuali.rice.core.impl.config.property.JAXBConfigImpl |
parseConfig(String location)
Parse the configuration stored at
location. |
static org.kuali.rice.core.impl.config.property.JAXBConfigImpl |
parseConfig(String location,
Properties properties)
Parse the configuration stored at
location, adding any additional properties from properties. |
static void |
putProperties(Config config,
Properties properties)
Put all of the given
properties into the given config. |
public static Config getRootConfig(Properties loaded, String location, javax.servlet.ServletContext servletContext)
Config from both the current configuration and the ones in loaded, at location,
and in the servletContext.loaded - the loaded propertieslocation - the location of additional propertiesservletContext - the servlet context in which to add more propertiespublic static org.kuali.rice.core.impl.config.property.JAXBConfigImpl parseConfig(String location)
location.location - the location to get properties frompublic static org.kuali.rice.core.impl.config.property.JAXBConfigImpl parseConfig(String location, Properties properties)
location, adding any additional properties from properties.location - the location to get properties fromproperties - any additional properties to addpublic static org.kuali.rice.core.impl.config.property.JAXBConfigImpl parseAndInit(String location)
location and initialize.location - the location to get properties frompublic static Properties getProperties(Config config)
Properties from the given config.config - the Config to get the Properties fromPropertiespublic static void putProperties(Config config, Properties properties)
properties into the given config.config - the Config to add the Properties toproperties - the Properties to addCopyright © 2005–2018 The Kuali Foundation. All rights reserved.