Class SpringContentEngineConfiguration

java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<ContentEngine>
com.flowable.content.engine.ContentEngineConfiguration
com.flowable.content.spring.SpringContentEngineConfiguration
All Implemented Interfaces:
CoreContentEngineConfigurationApi, org.flowable.common.spring.SpringEngineConfiguration, org.flowable.content.api.ContentEngineConfigurationApi, Aware, ApplicationContextAware, Lifecycle, Phased, SmartLifecycle

public class SpringContentEngineConfiguration extends ContentEngineConfiguration implements org.flowable.common.spring.SpringEngineConfiguration
Author:
Tijs Rademakers, David Syer, Joram Barrez
  • Field Details

    • PHASE

      public static final int PHASE
      See Also:
    • transactionManager

      protected PlatformTransactionManager transactionManager
    • applicationContext

      protected ApplicationContext applicationContext
    • transactionSynchronizationAdapterOrder

      protected Integer transactionSynchronizationAdapterOrder
    • deploymentName

      protected String deploymentName
    • deploymentResources

      protected Resource[] deploymentResources
    • deploymentMode

      protected String deploymentMode
    • lifeCycleMonitor

      protected final Object lifeCycleMonitor
    • running

      protected volatile boolean running
  • Constructor Details

    • SpringContentEngineConfiguration

      public SpringContentEngineConfiguration()
  • Method Details

    • buildContentEngine

      public ContentEngine buildContentEngine()
      Overrides:
      buildContentEngine in class ContentEngineConfiguration
    • setTransactionSynchronizationAdapterOrder

      public void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder)
    • initDefaultCommandConfig

      public void initDefaultCommandConfig()
      Overrides:
      initDefaultCommandConfig in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • createTransactionInterceptor

      public org.flowable.common.engine.impl.interceptor.CommandInterceptor createTransactionInterceptor()
      Overrides:
      createTransactionInterceptor in class ContentEngineConfiguration
    • initTransactionContextFactory

      public void initTransactionContextFactory()
      Overrides:
      initTransactionContextFactory in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • getAutoDeploymentStrategy

      protected org.flowable.common.spring.AutoDeploymentStrategy<ContentEngine> getAutoDeploymentStrategy(String mode)
      Gets the AutoDeploymentStrategy for the provided mode. This method may be overridden to implement custom deployment strategies if required, but implementors should take care not to return null.
      Parameters:
      mode - the mode to get the strategy for
      Returns:
      the deployment strategy to use for the mode. Never null
    • start

      public void start()
      Specified by:
      start in interface Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface Lifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface Phased
      Specified by:
      getPhase in interface SmartLifecycle
      Specified by:
      getPhase in interface org.flowable.common.spring.SpringEngineConfiguration
    • setDataSource

      public ContentEngineConfiguration setDataSource(DataSource dataSource)
      Overrides:
      setDataSource in class ContentEngineConfiguration
    • autoDeployResources

      protected void autoDeployResources(ContentEngine contentEngine)
    • getTransactionManager

      public PlatformTransactionManager getTransactionManager()
      Specified by:
      getTransactionManager in interface org.flowable.common.spring.SpringEngineConfiguration
    • setTransactionManager

      public void setTransactionManager(PlatformTransactionManager transactionManager)
      Specified by:
      setTransactionManager in interface org.flowable.common.spring.SpringEngineConfiguration
    • getApplicationContext

      public ApplicationContext getApplicationContext()
      Specified by:
      getApplicationContext in interface org.flowable.common.spring.SpringEngineConfiguration
    • setApplicationContext

      public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
      Specified by:
      setApplicationContext in interface ApplicationContextAware
      Specified by:
      setApplicationContext in interface org.flowable.common.spring.SpringEngineConfiguration
      Throws:
      BeansException
    • getDeploymentName

      public String getDeploymentName()
      Specified by:
      getDeploymentName in interface org.flowable.common.spring.SpringEngineConfiguration
    • setDeploymentName

      public void setDeploymentName(String deploymentName)
      Specified by:
      setDeploymentName in interface org.flowable.common.spring.SpringEngineConfiguration
    • getDeploymentResources

      public Resource[] getDeploymentResources()
      Specified by:
      getDeploymentResources in interface org.flowable.common.spring.SpringEngineConfiguration
    • setDeploymentResources

      public void setDeploymentResources(Resource[] deploymentResources)
      Specified by:
      setDeploymentResources in interface org.flowable.common.spring.SpringEngineConfiguration
    • getDeploymentMode

      public String getDeploymentMode()
      Specified by:
      getDeploymentMode in interface org.flowable.common.spring.SpringEngineConfiguration
    • setDeploymentMode

      public void setDeploymentMode(String deploymentMode)
      Specified by:
      setDeploymentMode in interface org.flowable.common.spring.SpringEngineConfiguration
    • getDeploymentStrategies

      public Collection<org.flowable.common.spring.AutoDeploymentStrategy<ContentEngine>> getDeploymentStrategies()
    • setDeploymentStrategies

      public ContentEngineConfiguration setDeploymentStrategies(Collection<org.flowable.common.spring.AutoDeploymentStrategy<ContentEngine>> deploymentStrategies)