org.kuali.rice.ksb.messaging.config
Class KSBConfigurer

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.impl.config.module.ModuleConfigurer
              extended by org.kuali.rice.ksb.messaging.config.KSBConfigurer
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.web.context.ServletContextAware

public class KSBConfigurer
extends ModuleConfigurer

Used to configure the embedded workflow. This could be used to configure embedded workflow programmatically but mostly this is a base class by which to hang specific configuration behavior off of through subclassing

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.core.impl.config.module.ModuleConfigurer
LOG
 
Constructor Summary
KSBConfigurer()
           
 
Method Summary
 void addAdditonalToConfig()
           
protected  void cleanUpConfiguration()
          Because our configuration is global, shutting down Rice does not get rid of objects stored there.
protected  void configureAlternateEndpoints()
           
protected  void configureDataSource()
           
protected  void configurePlatformTransactionManager()
           
protected  void configureScheduler()
           
 void doAdditionalContextStartedLogic()
           
 void doAdditionalContextStoppedLogic()
           
protected  void doAdditionalModuleStopLogic()
           
 void doAdditonalConfigurerValidations()
           
 List<AlternateEndpointLocation> getAlternateEndpointLocations()
           
 List<AlternateEndpoint> getAlternateEndpoints()
           
 DataSource getBamDataSource()
           
 org.quartz.Scheduler getExceptionMessagingScheduler()
           
 DataSource getMessageDataSource()
           
 DataSource getNonTransactionalMessageDataSource()
           
 org.springframework.transaction.PlatformTransactionManager getPlatformTransactionManager()
           
 List<String> getPrimarySpringFiles()
           
 DataSource getRegistryDataSource()
           
 Collection<ResourceLoader> getResourceLoadersToRegister()
           
 List<ServiceDefinition> getServices()
           
protected  boolean isBamEnabled()
           
protected  boolean isMessagePersistenceEnabled()
           
 List<Lifecycle> loadLifecycles()
           
 void setAlternateEndpointLocations(List<AlternateEndpointLocation> alternateEndpointLocations)
           
 void setAlternateEndpoints(List<AlternateEndpoint> alternateEndpoints)
           
 void setBamDataSource(DataSource bamDataSource)
           
 void setExceptionMessagingScheduler(org.quartz.Scheduler exceptionMessagingScheduler)
           
 void setMessageDataSource(DataSource messageDataSource)
           
 void setNonTransactionalMessageDataSource(DataSource nonTransactionalMessageDataSource)
           
 void setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager springTransactionManager)
           
 void setRegistryDataSource(DataSource registryDataSource)
           
 void setServices(List<ServiceDefinition> javaServices)
           
 boolean shouldRenderWebInterface()
          Returns true - KSB UI should always be included.
 
Methods inherited from class org.kuali.rice.core.impl.config.module.ModuleConfigurer
addToConfig, afterPropertiesSet, destroy, doAdditionalModuleStartLogic, doContextStartedLogic, doContextStoppedLogic, getAdditionalSpringFiles, getDefaultConfigPackagePath, getDefaultSpringBeansPath, getModuleName, getProperties, getRunMode, getValidRunModes, getWebModuleBaseUrl, getWebModuleConfigName, getWebModuleConfigurationFiles, hasWebInterface, initializeResourceLoaders, isExposeServicesOnBus, isIncludeUserInterfaceComponents, isSetSOAPServicesAsDefault, onApplicationEvent, setHasWebInterface, 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

KSBConfigurer

public KSBConfigurer()
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

shouldRenderWebInterface

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

Overrides:
shouldRenderWebInterface in class ModuleConfigurer
See Also:
org.kuali.rice.core.ConfigContext.getCurrentContextConfig().ModuleConfigurer#shouldRenderWebInterface()

getResourceLoadersToRegister

public Collection<ResourceLoader> getResourceLoadersToRegister()
                                                        throws Exception
Overrides:
getResourceLoadersToRegister in class ModuleConfigurer
Throws:
Exception

loadLifecycles

public List<Lifecycle> loadLifecycles()
                               throws Exception
Specified by:
loadLifecycles in interface Configurer
Overrides:
loadLifecycles in class ModuleConfigurer
Throws:
Exception

doAdditonalConfigurerValidations

public void doAdditonalConfigurerValidations()
Overrides:
doAdditonalConfigurerValidations in class ModuleConfigurer

doAdditionalContextStartedLogic

public void doAdditionalContextStartedLogic()
Overrides:
doAdditionalContextStartedLogic in class ModuleConfigurer

doAdditionalModuleStopLogic

protected void doAdditionalModuleStopLogic()
                                    throws Exception
Overrides:
doAdditionalModuleStopLogic in class ModuleConfigurer
Throws:
Exception

isMessagePersistenceEnabled

protected boolean isMessagePersistenceEnabled()

isBamEnabled

protected boolean isBamEnabled()

configureScheduler

protected void configureScheduler()

configureDataSource

protected void configureDataSource()

configurePlatformTransactionManager

protected void configurePlatformTransactionManager()

configureAlternateEndpoints

protected void configureAlternateEndpoints()

doAdditionalContextStoppedLogic

public void doAdditionalContextStoppedLogic()
Overrides:
doAdditionalContextStoppedLogic in class ModuleConfigurer

cleanUpConfiguration

protected void cleanUpConfiguration()
Because our configuration is global, shutting down Rice does not get rid of objects stored there. For that reason we need to manually clean these up. This is most important in the case of the service bus because the configuration is used to store services to be exported. If we don't clean this up then a shutdown/startup within the same class loading context causes the service list to be doubled and results in "multiple endpoint" error messages.


getServices

public List<ServiceDefinition> getServices()

setServices

public void setServices(List<ServiceDefinition> javaServices)

getMessageDataSource

public DataSource getMessageDataSource()

setMessageDataSource

public void setMessageDataSource(DataSource messageDataSource)

getNonTransactionalMessageDataSource

public DataSource getNonTransactionalMessageDataSource()

setNonTransactionalMessageDataSource

public void setNonTransactionalMessageDataSource(DataSource nonTransactionalMessageDataSource)

getRegistryDataSource

public DataSource getRegistryDataSource()

setRegistryDataSource

public void setRegistryDataSource(DataSource registryDataSource)

getBamDataSource

public DataSource getBamDataSource()

setBamDataSource

public void setBamDataSource(DataSource bamDataSource)

getExceptionMessagingScheduler

public org.quartz.Scheduler getExceptionMessagingScheduler()

setExceptionMessagingScheduler

public void setExceptionMessagingScheduler(org.quartz.Scheduler exceptionMessagingScheduler)

getPlatformTransactionManager

public org.springframework.transaction.PlatformTransactionManager getPlatformTransactionManager()

setPlatformTransactionManager

public void setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager springTransactionManager)

getAlternateEndpointLocations

public List<AlternateEndpointLocation> getAlternateEndpointLocations()

setAlternateEndpointLocations

public void setAlternateEndpointLocations(List<AlternateEndpointLocation> alternateEndpointLocations)

getAlternateEndpoints

public List<AlternateEndpoint> getAlternateEndpoints()

setAlternateEndpoints

public void setAlternateEndpoints(List<AlternateEndpoint> alternateEndpoints)


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