|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.core.lifecycle.BaseLifecycle
org.kuali.rice.core.lifecycle.BaseCompositeLifecycle
org.kuali.rice.core.config.RiceConfigurerBase
public abstract class RiceConfigurerBase
A common base class that can be used to implement classes which are used to configure various Kuali Rice instances.
Field Summary | |
---|---|
private List<String> |
additionalSpringFiles
|
private org.springframework.beans.factory.BeanFactory |
beanFactory
|
private List<String> |
configLocations
|
private String |
environment
|
private static org.apache.log4j.Logger |
LOG
|
private List<ModuleConfigurer> |
modules
|
private Properties |
properties
|
private Config |
rootConfig
|
private ResourceLoader |
rootResourceLoader
|
private String |
serviceNamespace
|
Constructor Summary | |
---|---|
RiceConfigurerBase()
|
Method Summary | |
---|---|
protected void |
addModulesResourceLoaders()
This method decides the sequence of module resource loaders to be added to global resource loader (GRL). |
void |
afterPropertiesSet()
|
protected void |
configureEnvironment(Config config)
|
protected void |
configureServiceNamespace(Config config)
|
void |
destroy()
|
List<String> |
getAdditionalSpringFiles()
|
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
|
List<String> |
getConfigLocations()
|
String |
getEnvironment()
|
List<ModuleConfigurer> |
getModules()
|
Properties |
getProperties()
|
Config |
getRootConfig()
|
ResourceLoader |
getRootResourceLoader()
|
String |
getServiceNamespace()
|
protected void |
initializeBaseConfiguration(Config currentConfig)
Initializes any base parameters within the Rice configuration system. |
protected void |
initializeFullConfiguration()
|
private void |
initializeResourceLoaders()
This method initializes root resource loader and spring context. |
protected boolean |
isConfigureLogging()
|
protected List<Lifecycle> |
loadLifecycles()
|
ResourceLoader |
loadSpringContext()
This method: 1) Creates a spring application context, using the spring files from the modules. |
protected void |
notify(RiceConfigEvent event)
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
protected Config |
parseConfig()
|
protected void |
parseModuleConfigs(Config rootConfig)
|
void |
setAdditionalSpringFiles(List<String> additionalSpringFiles)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setConfigLocations(List<String> configLocations)
|
void |
setEnvironment(String environment)
|
void |
setModules(List<ModuleConfigurer> modules)
|
void |
setProperties(Properties properties)
|
void |
setRootConfig(Config rootConfig)
|
void |
setRootResourceLoader(ResourceLoader rootResourceLoader)
|
void |
setServiceNamespace(String ServiceNamespace)
|
void |
start()
|
void |
stop()
|
Methods inherited from class org.kuali.rice.core.lifecycle.BaseLifecycle |
---|
isStarted, setStarted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.lifecycle.Lifecycle |
---|
isStarted |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private String environment
private String serviceNamespace
private Config rootConfig
private ResourceLoader rootResourceLoader
private Properties properties
private List<String> configLocations
private List<String> additionalSpringFiles
private org.springframework.beans.factory.BeanFactory beanFactory
private List<ModuleConfigurer> modules
Constructor Detail |
---|
public RiceConfigurerBase()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
DisposableBean.destroy()
public void start() throws Exception
start
in interface Lifecycle
start
in class BaseCompositeLifecycle
Exception
BaseCompositeLifecycle.start()
private void initializeResourceLoaders() throws Exception
Exception
protected void addModulesResourceLoaders() throws Exception
The default implementation loops over the list of modules and gets the resource loader to register for each one.
Exception
public ResourceLoader loadSpringContext() throws Exception
Exception
public void stop() throws Exception
stop
in interface Lifecycle
stop
in class BaseCompositeLifecycle
Exception
BaseCompositeLifecycle.stop()
protected List<Lifecycle> loadLifecycles() throws Exception
loadLifecycles
in class BaseCompositeLifecycle
Exception
BaseCompositeLifecycle.loadLifecycles()
protected boolean isConfigureLogging()
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
ApplicationListener.onApplicationEvent(org.springframework.context.ApplicationEvent)
protected void notify(RiceConfigEvent event) throws Exception
Exception
protected void initializeFullConfiguration() throws Exception
Exception
protected void initializeBaseConfiguration(Config currentConfig) throws Exception
This superclass configures the environment code, subclasses can override this but should be sure to call super.initializeBaseConfiguration.
Exception
protected Config parseConfig() throws Exception
Exception
protected void parseModuleConfigs(Config rootConfig) throws Exception
Exception
protected void configureEnvironment(Config config)
protected void configureServiceNamespace(Config config)
public String getEnvironment()
public void setEnvironment(String environment)
public String getServiceNamespace()
public void setServiceNamespace(String ServiceNamespace)
public ResourceLoader getRootResourceLoader()
public void setRootResourceLoader(ResourceLoader rootResourceLoader)
public Properties getProperties()
public void setProperties(Properties properties)
public List<String> getConfigLocations()
public void setConfigLocations(List<String> configLocations)
public Config getRootConfig()
public void setRootConfig(Config rootConfig)
public List<ModuleConfigurer> getModules()
public void setModules(List<ModuleConfigurer> modules)
modules
- the modules to setpublic List<String> getAdditionalSpringFiles()
public void setAdditionalSpringFiles(List<String> additionalSpringFiles)
additionalSpringFiles
- the additionalSpringFiles to set. list members can be
filenames, or comma separated lists of filenames.public org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |