Class 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 Detail

      • transactionManager

        protected org.springframework.transaction.PlatformTransactionManager transactionManager
      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
      • transactionSynchronizationAdapterOrder

        protected java.lang.Integer transactionSynchronizationAdapterOrder
      • deploymentName

        protected java.lang.String deploymentName
      • deploymentResources

        protected org.springframework.core.io.Resource[] deploymentResources
      • deploymentMode

        protected java.lang.String deploymentMode
      • lifeCycleMonitor

        protected final java.lang.Object lifeCycleMonitor
      • running

        protected volatile boolean running
    • Constructor Detail

      • SpringContentEngineConfiguration

        public SpringContentEngineConfiguration()
    • Method Detail

      • setTransactionSynchronizationAdapterOrder

        public void setTransactionSynchronizationAdapterOrder​(java.lang.Integer transactionSynchronizationAdapterOrder)
      • initDefaultCommandConfig

        public void initDefaultCommandConfig()
        Overrides:
        initDefaultCommandConfig in class org.flowable.common.engine.impl.AbstractEngineConfiguration
      • 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
      • 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)