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)
  • Constructor Details

    • KSBConfigurer

      public KSBConfigurer()
  • Method Details

    • addAdditonalToConfig

      public void addAdditonalToConfig()
      Overrides:
      addAdditonalToConfig in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
    • getPrimarySpringFiles

      public List<String> getPrimarySpringFiles()
      Specified by:
      getPrimarySpringFiles in interface org.kuali.rice.core.api.config.module.Configurer
      Overrides:
      getPrimarySpringFiles in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
    • hasWebInterface

      public boolean hasWebInterface()
      Overrides:
      hasWebInterface in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
    • shouldRenderWebInterface

      public boolean shouldRenderWebInterface()
      Overrides:
      shouldRenderWebInterface in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
    • loadWebModule

      protected org.kuali.rice.core.framework.config.module.WebModuleConfiguration loadWebModule()
      Overrides:
      loadWebModule in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
    • getResourceLoadersToRegister

      public Collection<org.kuali.rice.core.api.resourceloader.ResourceLoader> getResourceLoadersToRegister() throws Exception
      Overrides:
      getResourceLoadersToRegister in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
      Throws:
      Exception
    • loadLifecycles

      public List<org.kuali.rice.core.api.lifecycle.Lifecycle> loadLifecycles() throws Exception
      Specified by:
      loadLifecycles in interface org.kuali.rice.core.api.config.module.Configurer
      Overrides:
      loadLifecycles in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
      Throws:
      Exception
    • validateServices

      protected void validateServices(List<org.kuali.rice.ksb.api.bus.ServiceDefinition> services)
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
      Specified by:
      onApplicationEvent in interface org.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:
      supportsEventType in interface org.springframework.context.event.SmartApplicationListener
    • supportsSourceType

      public boolean supportsSourceType(Class<?> aClass)
      Specified by:
      supportsSourceType in interface org.springframework.context.event.SmartApplicationListener
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Specified by:
      getOrder in interface org.springframework.context.event.SmartApplicationListener
    • doAdditionalModuleStartLogic

      protected void doAdditionalModuleStartLogic() throws Exception
      Overrides:
      doAdditionalModuleStartLogic in class org.kuali.rice.core.framework.config.module.ModuleConfigurer
      Throws:
      Exception
    • doAdditionalModuleStopLogic

      protected void doAdditionalModuleStopLogic() throws Exception
      Overrides:
      doAdditionalModuleStopLogic in class org.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

      public List<org.kuali.rice.ksb.api.bus.ServiceDefinition> getServices()
    • setServices

      public void setServices(List<org.kuali.rice.ksb.api.bus.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)