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,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 KSBConfigurer
extends 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.PlatformTransactionManagerbooleanprotected booleanprotected booleanprotected 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<ServiceDefinition> javaServices) booleanbooleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> aClass) booleansupportsSourceType(Class<?> aClass) protected voidvalidateServices(List<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.springframework.context.event.SmartApplicationListener
getListenerId
-
Constructor Details
-
KSBConfigurer
public KSBConfigurer()
-
-
Method Details
-
addAdditonalToConfig
public void addAdditonalToConfig()- Overrides:
addAdditonalToConfigin classModuleConfigurer
-
getPrimarySpringFiles
- Specified by:
getPrimarySpringFilesin interfaceConfigurer- Overrides:
getPrimarySpringFilesin classModuleConfigurer
-
hasWebInterface
public boolean hasWebInterface()- Overrides:
hasWebInterfacein classModuleConfigurer
-
shouldRenderWebInterface
public boolean shouldRenderWebInterface()- Overrides:
shouldRenderWebInterfacein classModuleConfigurer
-
loadWebModule
- Overrides:
loadWebModulein classModuleConfigurer
-
getResourceLoadersToRegister
- Overrides:
getResourceLoadersToRegisterin classModuleConfigurer- Throws:
Exception
-
loadLifecycles
- Specified by:
loadLifecyclesin interfaceConfigurer- Overrides:
loadLifecyclesin classModuleConfigurer- 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 classModuleConfigurer- Throws:
Exception
-
doAdditionalModuleStopLogic
- Overrides:
doAdditionalModuleStopLogicin classModuleConfigurer- 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
-