org.kuali.rice.krad.config
Class KRADConfigurer

java.lang.Object
  extended by org.kuali.rice.core.api.lifecycle.BaseLifecycle
      extended by org.kuali.rice.core.api.lifecycle.BaseCompositeLifecycle
          extended by org.kuali.rice.core.framework.config.module.ModuleConfigurer
              extended by 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


Field Summary
 
Fields inherited from class org.kuali.rice.core.framework.config.module.ModuleConfigurer
LOG
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
KRADConfigurer()
           
 
Method Summary
 void addAdditonalToConfig()
           
protected  void configureDataSource()
          Used to "poke" the Data Dictionary again after the Spring Context is initialized.
 DataSource getApplicationDataSource()
           
 long getComponentPublishingDelay()
           
 int getOrder()
           
 List<String> getPrimarySpringFiles()
           
 boolean hasWebInterface()
          Indicates whether or not this module has a web interface module.
 boolean isComponentPublishingEnabled()
           
 boolean isIncludeKnsSpringBeans()
          Indicates whether the legacy KNS module should be included which will include the KNS spring beans file
 boolean isLoadDataDictionary()
           
 boolean isValidateDataDictionary()
           
 boolean isValidateDataDictionaryEboReferences()
           
protected  void loadDataDictionary()
          Used to "poke" the Data Dictionary again after the Spring Context is initialized.
 void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
           
protected  void publishDataDictionaryComponents()
           
 void setApplicationDataSource(DataSource applicationDataSource)
           
 void setIncludeKnsSpringBeans(boolean includeKnsSpringBeans)
          Setter for the include kns support indicator
 boolean shouldRenderWebInterface()
          Returns true - KNS UI should always be included.
 boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass)
           
 boolean supportsSourceType(Class<?> aClass)
           
 
Methods inherited from class org.kuali.rice.core.framework.config.module.ModuleConfigurer
addToConfig, afterPropertiesSet, destroy, doAdditionalModuleStartLogic, doAdditionalModuleStopLogic, doAdditonalConfigurerValidations, getAdditionalSpringFiles, getCurrentContextConfigurers, getDefaultConfigPackagePath, getDefaultSpringBeansPath, getModuleName, getProperties, getResourceLoadersToRegister, getRunMode, getValidRunModes, getWebModuleConfiguration, initializeResourceLoaders, isExposeServicesOnBus, loadLifecycles, loadWebModule, setModuleName, setProperties, setServletContext, setValidRunModes, start, stop, validateConfigurerState
 
Methods inherited from class org.kuali.rice.core.api.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.api.lifecycle.Lifecycle
isStarted
 

Constructor Detail

KRADConfigurer

public KRADConfigurer()
Method Detail

addAdditonalToConfig

public void addAdditonalToConfig()
Overrides:
addAdditonalToConfig in class ModuleConfigurer

getPrimarySpringFiles

public List<String> getPrimarySpringFiles()
Specified by:
getPrimarySpringFiles in interface Configurer
Overrides:
getPrimarySpringFiles in class ModuleConfigurer

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

supportsEventType

public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass)
Specified by:
supportsEventType in interface org.springframework.context.event.SmartApplicationListener

supportsSourceType

public boolean supportsSourceType(Class<?> aClass)
Specified by:
supportsSourceType in interface org.springframework.context.event.SmartApplicationListener

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

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


publishDataDictionaryComponents

protected void publishDataDictionaryComponents()

hasWebInterface

public boolean hasWebInterface()
Description copied from class: ModuleConfigurer
Indicates whether or not this module has a web interface module. Default implementation returns false, but subclasses can override to return true if they have a web module that can be loaded.

Overrides:
hasWebInterface in class ModuleConfigurer
Returns:
true if this module has a web interface, false otherwise

shouldRenderWebInterface

public boolean shouldRenderWebInterface()
Returns true - KNS UI should always be included.

Overrides:
shouldRenderWebInterface in class ModuleConfigurer
Returns:
true if the web interface for this module should be rendered, false otherwise
See Also:
ModuleConfigurer.shouldRenderWebInterface()

isLoadDataDictionary

public boolean isLoadDataDictionary()

isValidateDataDictionary

public boolean isValidateDataDictionary()

isValidateDataDictionaryEboReferences

public boolean isValidateDataDictionaryEboReferences()

isComponentPublishingEnabled

public boolean isComponentPublishingEnabled()

getComponentPublishingDelay

public long getComponentPublishingDelay()

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

public DataSource getApplicationDataSource()

setApplicationDataSource

public void setApplicationDataSource(DataSource applicationDataSource)

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 -


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.