Package org.kuali.rice.krad.config
Class KRADConfigurer
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.core.api.lifecycle.BaseCompositeLifecycle
org.kuali.rice.core.framework.config.module.ModuleConfigurer
org.kuali.rice.krad.config.KRADConfigurer
- All Implemented Interfaces:
EventListener,Configurer,Lifecycle,org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.SmartApplicationListener,org.springframework.core.Ordered,org.springframework.web.context.ServletContextAware
public class KRADConfigurer
extends ModuleConfigurer
implements org.springframework.context.event.SmartApplicationListener
Rice module configurer for KRAD
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.kuali.rice.core.framework.config.module.ModuleConfigurer
LOGFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidUsed to "poke" the Data Dictionary again after the Spring Context is initialized.intgetOrder()booleanbooleanIndicates whether the legacy KNS module should be included which will include the KNS spring beans filebooleanbooleanbooleanprotected voidUsed to "poke" the Data Dictionary again after the Spring Context is initialized.voidonApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) voidsetApplicationDataSource(DataSource applicationDataSource) voidsetIncludeKnsSpringBeans(boolean includeKnsSpringBeans) Setter for the include kns support indicatorbooleanReturns true - KNS UI should always be included.booleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass) booleansupportsSourceType(Class<?> aClass) Methods inherited from class org.kuali.rice.core.framework.config.module.ModuleConfigurer
addToConfig, afterPropertiesSet, createResourceLoader, destroy, doAdditionalModuleStartLogic, doAdditionalModuleStopLogic, doAdditonalConfigurerValidations, getAdditionalSpringFiles, getCurrentContextConfigurers, getDefaultConfigPackagePath, getDefaultSpringBeansPath, getModuleName, getProperties, getResourceLoadersToRegister, getRunMode, getServletContext, getValidRunModes, getWebModuleConfiguration, initializeResourceLoaders, isExposeServicesOnBus, loadLifecycles, loadWebModule, parseFileList, setModuleName, setProperties, setServletContext, setValidRunModes, start, stop, validateConfigurerStateMethods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId
-
Constructor Details
-
KRADConfigurer
public KRADConfigurer()
-
-
Method Details
-
addAdditonalToConfig
public void addAdditonalToConfig()- Overrides:
addAdditonalToConfigin classModuleConfigurer
-
getPrimarySpringFiles
- Specified by:
getPrimarySpringFilesin interfaceConfigurer- Overrides:
getPrimarySpringFilesin classModuleConfigurer
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
supportsSourceType
- Specified by:
supportsSourceTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.context.event.SmartApplicationListener
-
loadDataDictionary
protected void loadDataDictionary()Used to "poke" the Data Dictionary again after the Spring Context is initialized. This is to allow for modules loaded with KualiModule after the KNS has already been initialized to work. Also initializes the DateTimeService -
hasWebInterface
public boolean hasWebInterface()- Overrides:
hasWebInterfacein classModuleConfigurer
-
shouldRenderWebInterface
public boolean shouldRenderWebInterface()Returns true - KNS UI should always be included.- Overrides:
shouldRenderWebInterfacein classModuleConfigurer- See Also:
-
isLoadDataDictionary
public boolean isLoadDataDictionary() -
isValidateDataDictionary
public boolean isValidateDataDictionary() -
isInterfaceBasedOverridesDataDictionary
public boolean isInterfaceBasedOverridesDataDictionary() -
configureDataSource
protected void configureDataSource()Used to "poke" the Data Dictionary again after the Spring Context is initialized. This is to allow for modules loaded with KualiModule after the KNS has already been initialized to work. Also initializes the DateTimeService -
getApplicationDataSource
-
setApplicationDataSource
-
isIncludeKnsSpringBeans
public boolean isIncludeKnsSpringBeans()Indicates whether the legacy KNS module should be included which will include the KNS spring beans file- Returns:
- boolean true if kns should be supported, false if not
-
setIncludeKnsSpringBeans
public void setIncludeKnsSpringBeans(boolean includeKnsSpringBeans) Setter for the include kns support indicator- Parameters:
includeKnsSpringBeans-
-