org.kuali.rice.kns.config
Class KNSConfigurer

java.lang.Object
  extended by org.kuali.rice.core.lifecycle.BaseLifecycle
      extended by org.kuali.rice.core.lifecycle.BaseCompositeLifecycle
          extended by org.kuali.rice.core.config.ModuleConfigurer
              extended by org.kuali.rice.kns.config.KNSConfigurer
All Implemented Interfaces:
Configurer, RiceConfigEventListener, org.kuali.rice.core.lifecycle.Lifecycle, org.springframework.beans.factory.InitializingBean

public class KNSConfigurer
extends ModuleConfigurer


Field Summary
 
Fields inherited from class org.kuali.rice.core.config.ModuleConfigurer
EMBEDDED_RUN_MODE, exposeServicesOnBus, includeUserInterfaceComponents, LOCAL_RUN_MODE, LOG, REMOTE_RUN_MODE, resourceLoaderName, setSOAPServicesAsDefault, springFileLocations, testMode, THIN_RUN_MODE, VALID_RUN_MODES, webInterface, webModuleBaseUrl, webModuleConfigName, webModuleConfigurationFiles
 
Constructor Summary
KNSConfigurer()
           
 
Method Summary
protected  void configureDataSource(org.kuali.rice.core.config.Config config)
           
 DataSource getApplicationDataSource()
           
 String getApplicationDataSourceJndiName()
           
 DataSource getServerDataSource()
           
 String getServerDataSourceJndiName()
           
 String getSpringFileLocations()
          This method returns a comma separated string of spring file locations for this module.
 boolean hasWebInterface()
          Returns true - KNS UI should always be included.
 boolean isLoadDataDictionary()
           
 boolean isValidateDataDictionary()
           
 boolean isValidateDataDictionaryEboReferences()
           
 org.kuali.rice.core.config.Config loadConfig(org.kuali.rice.core.config.Config parentConfig)
           
 void onEvent(RiceConfigEvent event)
          Used to "poke" the Data Dictionary again after the Spring Context is initialized.
 void setApplicationDataSource(DataSource applicationDataSource)
           
 void setApplicationDataSourceJndiName(String applicationDataSourceJndiName)
           
 void setLoadDataDictionary(boolean loadDataDictionary)
           
 void setServerDataSource(DataSource serverDataSource)
           
 void setServerDataSourceJndiName(String serverDataSourceJndiName)
           
 void setValidateDataDictionary(boolean validateDataDictionary)
           
 void setValidateDataDictionaryEboReferences(boolean validateDataDictionaryEboReferences)
           
 boolean shouldRenderWebInterface()
          Returns true - KNS UI should always be included.
 
Methods inherited from class org.kuali.rice.core.config.ModuleConfigurer
afterPropertiesSet, configureRunMode, configureWebConfiguration, createResourceLoader, getDefaultConfigPackagePath, getDefaultResourceLoaderName, getDefaultResourceLoaderQName, getDefaultSpringBeansPath, getModuleName, getResourceLoaderToRegister, getRunMode, getWebModuleBaseUrl, getWebModuleConfigName, getWebModuleConfigurationFiles, isExposeServicesOnBus, isIncludeUserInterfaceComponents, isSetSOAPServicesAsDefault, isTestMode, loadLifecycles, setExposeServicesOnBus, setHasWebInterface, setIncludeUserInterfaceComponents, setModuleName, setRunMode, setSetSOAPServicesAsDefault, setSpringFileLocations, setTestMode, setWebModuleBaseUrl, setWebModuleConfigName, setWebModuleConfigurationFiles
 
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
 

Constructor Detail

KNSConfigurer

public KNSConfigurer()
Method Detail

loadConfig

public org.kuali.rice.core.config.Config loadConfig(org.kuali.rice.core.config.Config parentConfig)
                                             throws Exception
Overrides:
loadConfig in class ModuleConfigurer
Throws:
Exception

getSpringFileLocations

public String getSpringFileLocations()
Description copied from class: ModuleConfigurer
This method returns a comma separated string of spring file locations for this module.

Overrides:
getSpringFileLocations in class ModuleConfigurer

shouldRenderWebInterface

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

Overrides:
shouldRenderWebInterface in class ModuleConfigurer
See Also:
ModuleConfigurer.shouldRenderWebInterface()

hasWebInterface

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

Overrides:
hasWebInterface in class ModuleConfigurer
See Also:
ModuleConfigurer.hasWebInterface()

onEvent

public void onEvent(RiceConfigEvent event)
             throws Exception
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

Specified by:
onEvent in interface RiceConfigEventListener
Overrides:
onEvent in class ModuleConfigurer
Throws:
Exception

configureDataSource

protected void configureDataSource(org.kuali.rice.core.config.Config config)

isLoadDataDictionary

public boolean isLoadDataDictionary()
Returns:
the loadDataDictionary

setLoadDataDictionary

public void setLoadDataDictionary(boolean loadDataDictionary)
Parameters:
loadDataDictionary - the loadDataDictionary to set

isValidateDataDictionary

public boolean isValidateDataDictionary()
Returns:
the validateDataDictionary

setValidateDataDictionary

public void setValidateDataDictionary(boolean validateDataDictionary)
Parameters:
validateDataDictionary - the validateDataDictionary to set

getApplicationDataSource

public DataSource getApplicationDataSource()

getServerDataSource

public DataSource getServerDataSource()

setApplicationDataSource

public void setApplicationDataSource(DataSource applicationDataSource)

setServerDataSource

public void setServerDataSource(DataSource serverDataSource)

getApplicationDataSourceJndiName

public String getApplicationDataSourceJndiName()

getServerDataSourceJndiName

public String getServerDataSourceJndiName()

setApplicationDataSourceJndiName

public void setApplicationDataSourceJndiName(String applicationDataSourceJndiName)

setServerDataSourceJndiName

public void setServerDataSourceJndiName(String serverDataSourceJndiName)

setValidateDataDictionaryEboReferences

public void setValidateDataDictionaryEboReferences(boolean validateDataDictionaryEboReferences)

isValidateDataDictionaryEboReferences

public boolean isValidateDataDictionaryEboReferences()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.