org.kuali.rice.ksb.messaging.config
Class KSBConfigurer
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.core.api.lifecycle.BaseCompositeLifecycle
org.kuali.rice.core.impl.config.module.ModuleConfigurer
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)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KSBConfigurer
public KSBConfigurer()
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.