Class SpringContentEngineConfiguration

java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
com.flowable.content.engine.ContentEngineConfiguration
com.flowable.content.spring.SpringContentEngineConfiguration
All Implemented Interfaces:
CoreContentEngineConfigurationApi, org.flowable.common.spring.SpringEngineConfiguration, org.flowable.content.api.ContentEngineConfigurationApi, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

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

  • Constructor Details

  • Method Details

    • buildContentEngine

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

      public void setTransactionSynchronizationAdapterOrder​(java.lang.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​(java.lang.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 org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

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

      public ContentEngineConfiguration setDataSource​(javax.sql.DataSource dataSource)
      Overrides:
      setDataSource in class ContentEngineConfiguration
    • autoDeployResources

      protected void autoDeployResources​(ContentEngine contentEngine)
    • getTransactionManager

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

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

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

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

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

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

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

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

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

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

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

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