Class SpringConfiguration

java.lang.Object
org.camunda.community.bpmndt.api.cfg.SpringConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Configuration public class SpringConfiguration extends Object implements org.springframework.beans.factory.InitializingBean
Spring test configuration, used as superclass for the generated configuration.
If data source and/or transaction manager are not provided by the application context, this configuration will initialize and provide them to the process engine configuration.
Moreover, if the application context provides a list of process engine plugins, this list will be preferred in favor of the process engine plugins that are configured on the Maven plugin execution - see parameter processEnginePlugins.
  • Constructor Details

    • SpringConfiguration

      public SpringConfiguration()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getProcessEngine

      @Bean public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
    • getProcessEnginePlugins

      protected List<org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin> getProcessEnginePlugins()
      Returns a list of process engine plugins that are registered at the process engine. The list may be empty, if there are no plugins to register. This method should be overridden by subclasses.
      Returns:
      A list of process engine plugins.
    • initDataSource

      protected DataSource initDataSource()
    • initProcessEnginePlugins

      protected List<org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin> initProcessEnginePlugins()
    • initTransactionManager

      protected org.springframework.transaction.PlatformTransactionManager initTransactionManager(DataSource dataSource)