Class SpringFormEngineConfiguration

java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
com.flowable.form.engine.FormEngineConfiguration
com.flowable.form.spring.SpringFormEngineConfiguration
All Implemented Interfaces:
org.flowable.common.engine.impl.HasExpressionManagerEngineConfiguration, org.flowable.common.spring.SpringEngineConfiguration, org.flowable.form.api.FormEngineConfigurationApi, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

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

  • Constructor Details

  • Method Details

    • buildFormEngine

      public FormEngine buildFormEngine()
      Overrides:
      buildFormEngine in class FormEngineConfiguration
    • 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 FormEngineConfiguration
    • initTransactionContextFactory

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

      protected void autoDeployResources​(FormEngine formEngine)
    • setDataSource

      public FormEngineConfiguration setDataSource​(javax.sql.DataSource dataSource)
      Overrides:
      setDataSource in class org.flowable.common.engine.impl.AbstractEngineConfiguration
    • 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
    • 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
    • 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
    • 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
    • getAutoDeploymentStrategy

      protected org.flowable.common.spring.AutoDeploymentStrategy<FormEngine> 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
    • getDeploymentStrategies

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

      public void setDeploymentStrategies​(java.util.Collection<org.flowable.common.spring.AutoDeploymentStrategy<FormEngine>> deploymentStrategies)
    • 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