Class KSBConfigurer
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.ksb.messaging.config.KSBConfigurer
- All Implemented Interfaces:
EventListener,org.kuali.rice.core.api.config.module.Configurer,org.kuali.rice.core.api.lifecycle.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 KSBConfigurer
extends org.kuali.rice.core.framework.config.module.ModuleConfigurer
implements org.springframework.context.event.SmartApplicationListener
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.framework.config.module.ModuleConfigurer
LOGFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidBecause our configuration is global, shutting down Rice does not get rid of objects stored there.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidorg.quartz.SchedulerintgetOrder()org.springframework.transaction.PlatformTransactionManagerCollection<org.kuali.rice.core.api.resourceloader.ResourceLoader> List<org.kuali.rice.ksb.api.bus.ServiceDefinition> booleanprotected booleanprotected booleanList<org.kuali.rice.core.api.lifecycle.Lifecycle> protected org.kuali.rice.core.framework.config.module.WebModuleConfigurationvoidonApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) voidsetAlternateEndpointLocations(List<AlternateEndpointLocation> alternateEndpointLocations) voidsetAlternateEndpoints(List<AlternateEndpoint> alternateEndpoints) voidsetBamDataSource(DataSource bamDataSource) voidsetExceptionMessagingScheduler(org.quartz.Scheduler exceptionMessagingScheduler) voidsetMessageDataSource(DataSource messageDataSource) voidsetNonTransactionalMessageDataSource(DataSource nonTransactionalMessageDataSource) voidsetPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager springTransactionManager) voidsetRegistryDataSource(DataSource registryDataSource) voidsetServices(List<org.kuali.rice.ksb.api.bus.ServiceDefinition> javaServices) booleanbooleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass) booleansupportsSourceType(Class<?> aClass) protected voidvalidateServices(List<org.kuali.rice.ksb.api.bus.ServiceDefinition> services) Methods inherited from class org.kuali.rice.core.framework.config.module.ModuleConfigurer
addToConfig, afterPropertiesSet, createResourceLoader, destroy, doAdditonalConfigurerValidations, getAdditionalSpringFiles, getCurrentContextConfigurers, getDefaultConfigPackagePath, getDefaultSpringBeansPath, getModuleName, getProperties, getRunMode, getServletContext, getValidRunModes, getWebModuleConfiguration, initializeResourceLoaders, isExposeServicesOnBus, 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.kuali.rice.core.api.lifecycle.Lifecycle
isStartedMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId
-
Constructor Details
-
KSBConfigurer
public KSBConfigurer()
-
-
Method Details
-
addAdditonalToConfig
public void addAdditonalToConfig()- Overrides:
addAdditonalToConfigin classorg.kuali.rice.core.framework.config.module.ModuleConfigurer
-
getPrimarySpringFiles
- Specified by:
getPrimarySpringFilesin interfaceorg.kuali.rice.core.api.config.module.Configurer- Overrides:
getPrimarySpringFilesin classorg.kuali.rice.core.framework.config.module.ModuleConfigurer
-
hasWebInterface
public boolean hasWebInterface()- Overrides:
hasWebInterfacein classorg.kuali.rice.core.framework.config.module.ModuleConfigurer
-
shouldRenderWebInterface
public boolean shouldRenderWebInterface()- Overrides:
shouldRenderWebInterfacein classorg.kuali.rice.core.framework.config.module.ModuleConfigurer
-
loadWebModule
protected org.kuali.rice.core.framework.config.module.WebModuleConfiguration loadWebModule()- Overrides:
loadWebModulein classorg.kuali.rice.core.framework.config.module.ModuleConfigurer
-
getResourceLoadersToRegister
public Collection<org.kuali.rice.core.api.resourceloader.ResourceLoader> getResourceLoadersToRegister() throws Exception- Overrides:
getResourceLoadersToRegisterin classorg.kuali.rice.core.framework.config.module.ModuleConfigurer- Throws:
Exception
-
loadLifecycles
- Specified by:
loadLifecyclesin interfaceorg.kuali.rice.core.api.config.module.Configurer- Overrides:
loadLifecyclesin classorg.kuali.rice.core.framework.config.module.ModuleConfigurer- Throws:
Exception
-
validateServices
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
doAdditionalContextStartedLogic
protected void doAdditionalContextStartedLogic() -
doAdditionalContextStoppedLogic
protected void doAdditionalContextStoppedLogic() -
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
-
doAdditionalModuleStartLogic
- Overrides:
doAdditionalModuleStartLogicin classorg.kuali.rice.core.framework.config.module.ModuleConfigurer- Throws:
Exception
-
doAdditionalModuleStopLogic
- Overrides:
doAdditionalModuleStopLogicin classorg.kuali.rice.core.framework.config.module.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() -
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
-
setServices
-
getMessageDataSource
-
setMessageDataSource
-
getNonTransactionalMessageDataSource
-
setNonTransactionalMessageDataSource
-
getRegistryDataSource
-
setRegistryDataSource
-
getBamDataSource
-
setBamDataSource
-
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
-
setAlternateEndpointLocations
public void setAlternateEndpointLocations(List<AlternateEndpointLocation> alternateEndpointLocations) -
getAlternateEndpoints
-
setAlternateEndpoints
-