|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.lifecycle.BaseLifecycle org.kuali.rice.core.lifecycle.BaseCompositeLifecycle org.kuali.rice.core.config.ModuleConfigurer
public abstract class ModuleConfigurer
Field Summary | |
---|---|
static String |
EMBEDDED_RUN_MODE
|
protected boolean |
exposeServicesOnBus
|
protected boolean |
includeUserInterfaceComponents
|
static String |
LOCAL_RUN_MODE
|
protected org.apache.log4j.Logger |
LOG
Protected logger for use by subclasses |
private String |
moduleName
|
static String |
REMOTE_RUN_MODE
|
protected String |
resourceLoaderName
|
private String |
runMode
|
protected boolean |
setSOAPServicesAsDefault
|
protected String |
springFileLocations
|
protected boolean |
testMode
|
static String |
THIN_RUN_MODE
|
protected List<String> |
VALID_RUN_MODES
|
protected boolean |
webInterface
|
protected String |
webModuleBaseUrl
|
protected String |
webModuleConfigName
|
protected String |
webModuleConfigurationFiles
|
Constructor Summary | |
---|---|
ModuleConfigurer()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected void |
configureRunMode(Config config)
Creates a configuration parameter for the run mode by appending the module name (in lower case) plus ".mode" |
protected void |
configureWebConfiguration(Config config)
|
protected ResourceLoader |
createResourceLoader()
Constructs a SpringResourceLoader from the appropriate Spring context resource and with the configured resource loader name (and current context config service namespace) |
protected String |
getDefaultConfigPackagePath()
|
String |
getDefaultResourceLoaderName()
|
QName |
getDefaultResourceLoaderQName()
|
protected String |
getDefaultSpringBeansPath(String configPackagePath)
|
String |
getModuleName()
|
ResourceLoader |
getResourceLoaderToRegister()
This method returns a resource loader that this module might want to register with the global resource loader. |
String |
getRunMode()
|
String |
getSpringFileLocations()
This method returns a comma separated string of spring file locations for this module. |
String |
getWebModuleBaseUrl()
|
String |
getWebModuleConfigName()
|
String |
getWebModuleConfigurationFiles()
|
boolean |
hasWebInterface()
|
boolean |
isExposeServicesOnBus()
|
boolean |
isIncludeUserInterfaceComponents()
|
boolean |
isSetSOAPServicesAsDefault()
|
boolean |
isTestMode()
|
Config |
loadConfig(Config parentConfig)
|
protected List<Lifecycle> |
loadLifecycles()
This overridden method ... |
void |
onEvent(RiceConfigEvent event)
|
void |
setExposeServicesOnBus(boolean exposeServicesOnBus)
|
protected void |
setHasWebInterface(boolean webInterface)
|
void |
setIncludeUserInterfaceComponents(boolean includeUserInterfaceComponents)
|
void |
setModuleName(String moduleName)
|
void |
setRunMode(String runMode)
|
void |
setSetSOAPServicesAsDefault(boolean setSOAPServicesAsDefault)
|
void |
setSpringFileLocations(String springFileLocations)
|
void |
setTestMode(boolean testMode)
|
void |
setWebModuleBaseUrl(String webModuleBaseUrl)
|
void |
setWebModuleConfigName(String webModuleConfigName)
|
void |
setWebModuleConfigurationFiles(String webModuleConfigurationFiles)
|
boolean |
shouldRenderWebInterface()
This base implementation returns true when the module has a web interface and the runMode is "local". |
Methods inherited from class org.kuali.rice.core.lifecycle.BaseCompositeLifecycle |
---|
start, 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, start, stop |
Field Detail |
---|
protected final org.apache.log4j.Logger LOG
public static final String LOCAL_RUN_MODE
public static final String EMBEDDED_RUN_MODE
public static final String REMOTE_RUN_MODE
public static final String THIN_RUN_MODE
protected final List<String> VALID_RUN_MODES
private String runMode
private String moduleName
protected String webModuleConfigName
protected String webModuleConfigurationFiles
protected String webModuleBaseUrl
protected boolean webInterface
protected boolean testMode
protected String springFileLocations
protected String resourceLoaderName
protected boolean exposeServicesOnBus
protected boolean setSOAPServicesAsDefault
protected boolean includeUserInterfaceComponents
Constructor Detail |
---|
public ModuleConfigurer()
Method Detail |
---|
protected List<Lifecycle> loadLifecycles() throws Exception
loadLifecycles
in class BaseCompositeLifecycle
Exception
BaseCompositeLifecycle.loadLifecycles()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public String getRunMode()
public void setRunMode(String runMode)
public Config loadConfig(Config parentConfig) throws Exception
Exception
protected void configureWebConfiguration(Config config) throws Exception
Exception
protected void configureRunMode(Config config)
public String getSpringFileLocations() throws Exception
Exception
protected String getDefaultConfigPackagePath()
protected String getDefaultSpringBeansPath(String configPackagePath)
public String getDefaultResourceLoaderName()
public QName getDefaultResourceLoaderQName()
public ResourceLoader getResourceLoaderToRegister() throws Exception
Exception
protected ResourceLoader createResourceLoader() throws Exception
Exception
public void onEvent(RiceConfigEvent event) throws Exception
onEvent
in interface RiceConfigEventListener
Exception
public String getModuleName()
public void setModuleName(String moduleName)
public String getWebModuleConfigName()
public void setWebModuleConfigName(String webModuleConfigName)
public String getWebModuleConfigurationFiles()
public void setWebModuleConfigurationFiles(String webModuleConfigurationFiles)
public boolean hasWebInterface()
protected void setHasWebInterface(boolean webInterface)
public boolean shouldRenderWebInterface()
public boolean isTestMode()
public void setTestMode(boolean testMode)
testMode
- the testMode to setpublic void setSpringFileLocations(String springFileLocations)
springFileLocations
- the springFileLocations to setpublic String getWebModuleBaseUrl()
public void setWebModuleBaseUrl(String webModuleBaseUrl)
webModuleBaseUrl
- the webModuleBaseUrl to setpublic boolean isExposeServicesOnBus()
public void setExposeServicesOnBus(boolean exposeServicesOnBus)
public boolean isIncludeUserInterfaceComponents()
public void setIncludeUserInterfaceComponents(boolean includeUserInterfaceComponents)
public boolean isSetSOAPServicesAsDefault()
public void setSetSOAPServicesAsDefault(boolean setSOAPServicesAsDefault)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |