|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.config.ConfigContext
public class ConfigContext
Singleton that holds references to global engine objects.
Field Summary | |
---|---|
private static Map<ClassLoader,Config> |
CONFIGS
|
private static ContextualConfigLock |
initialized
Concurrency utility which allows other, loosely coupled, components to wait for configuration initialization to complete before proceeding (namely the SpringServiceLocator, before it initializes Spring) |
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
private |
ConfigContext()
|
Method Summary | |
---|---|
static void |
destroy()
Destroy method (mostly to aid testing, as core needs to be torn down appropriately). |
static Config |
getConfig(ClassLoader cl)
|
static Set<Map.Entry<ClassLoader,Config>> |
getConfigs()
|
static Config |
getCurrentContextConfig()
Utility method that all code should call to obtain its appropriate Config object. |
static ContextualConfigLock |
getInitializedCondition()
Returns the Condition that allows waiting on configuration to complete |
private static Object |
getObjectFromClassLoader(String name,
ClassLoader classLoader)
|
private static void |
getObjectFromClassLoader(String name,
ClassLoader classLoader,
List<Object> objects)
|
static Object |
getObjectFromConfigHierarchy(String name)
|
static List<Object> |
getObjectsFromConfigHierarchy(String name)
|
static Config |
getRootConfig()
Deprecated. this really isn't working as intended at the moment but it still needs to work the concept of a root config may need to go away |
static void |
init(ClassLoader classLoader,
Config config)
Initializes the ConfigContext with the given Config and binds it to the given ClassLoader. |
static void |
init(Config rootCfg)
Perform a one-time initialization of the Config system. |
static void |
overrideConfig(ClassLoader cl,
Config config)
Overrides any existing Config for the classloader |
static void |
validateCoreConfiguration()
Runs a series of validation checks against the core configuration to ensure that required properties are present. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private static final ContextualConfigLock initialized
private static final Map<ClassLoader,Config> CONFIGS
Constructor Detail |
---|
private ConfigContext()
Method Detail |
---|
public static void init(Config rootCfg)
rootCfg
- the root configpublic static void init(ClassLoader classLoader, Config config)
public static void destroy()
public static Config getRootConfig()
public static ContextualConfigLock getInitializedCondition()
public static void validateCoreConfiguration()
public static Config getCurrentContextConfig()
public static Config getConfig(ClassLoader cl)
cl
- the classloader whose Config to return
public static Object getObjectFromConfigHierarchy(String name)
private static Object getObjectFromClassLoader(String name, ClassLoader classLoader)
public static List<Object> getObjectsFromConfigHierarchy(String name)
private static void getObjectFromClassLoader(String name, ClassLoader classLoader, List<Object> objects)
public static Set<Map.Entry<ClassLoader,Config>> getConfigs()
public static void overrideConfig(ClassLoader cl, Config config)
cl
- the classloader whose Config should be overriddenconfig
- the config
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |