Package org.flowable.engine.configurator
Class ProcessEngineConfigurator
java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfigurator
org.flowable.engine.configurator.ProcessEngineConfigurator
- All Implemented Interfaces:
EngineConfigurator
- Direct Known Subclasses:
SpringProcessEngineConfigurator
- Author:
- Tijs Rademakers
-
Field Summary
FieldsFields inherited from class org.flowable.common.engine.impl.AbstractEngineConfigurator
enableMybatisXmlMappingValidation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(AbstractEngineConfiguration engineConfiguration) Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done.protected List<EngineDeployer>
protected JobServiceConfiguration
getJobServiceConfiguration
(AbstractEngineConfiguration engineConfiguration) protected String
int
When theEngineConfigurator
instances are used, they are first ordered by this priority number (lowest to highest).protected void
initDbSqlSessionFactory
(AbstractEngineConfiguration engineConfiguration, AbstractEngineConfiguration targetEngineConfiguration) protected ProcessEngine
setProcessEngineConfiguration
(ProcessEngineConfiguration processEngineConfiguration) Methods inherited from class org.flowable.common.engine.impl.AbstractEngineConfigurator
beforeInit, createDocumentBuilderFactory, getMybatisTypeAliases, getMybatisTypeHandlers, initClock, initCommandContextFactory, initDataSource, initDbProperties, initEngineConfigurations, initEventDispatcher, initEventRegistryEventConsumers, initialiseCommonProperties, initIdGenerator, initObjectMapper, initServiceConfigurations, initSessionFactories, initVariableTypes, isEnableMybatisXmlMappingValidation, registerCustomDeployers, registerCustomMybatisMappings, setEnableMybatisXmlMappingValidation
-
Field Details
-
processEngineConfiguration
-
-
Constructor Details
-
ProcessEngineConfigurator
public ProcessEngineConfigurator()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:EngineConfigurator
When theEngineConfigurator
instances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies betweenEngineConfigurator
instances, use the priorities accordingly to order them as needed. -
getCustomDeployers
- Specified by:
getCustomDeployers
in classAbstractEngineConfigurator
-
getMybatisCfgPath
- Specified by:
getMybatisCfgPath
in classAbstractEngineConfigurator
- Returns:
- The path to the Mybatis cfg file that is normally used for the engine (so the full cfg, not an individual mapper). Return null in case no custom mappers should be loaded.
-
configure
Description copied from interface:EngineConfigurator
Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done. Allows to tweak the engine by passing theAbstractEngineConfiguration
which allows tweaking it programmatically. An example is the ldap user/group manager, which is an addition to the engine. No default properties need to be overridden for this (otherwise theEngineConfigurator.beforeInit(AbstractEngineConfiguration)
method should be used) so the logic contained in this method is executed after initialisation of the default objects. Probably a better name would be 'afterInit' (cfrEngineConfigurator.beforeInit(AbstractEngineConfiguration)
), but not possible due to backwards compatibility. -
initDbSqlSessionFactory
protected void initDbSqlSessionFactory(AbstractEngineConfiguration engineConfiguration, AbstractEngineConfiguration targetEngineConfiguration) - Overrides:
initDbSqlSessionFactory
in classAbstractEngineConfigurator
-
getEntityInsertionOrder
- Specified by:
getEntityInsertionOrder
in classAbstractEngineConfigurator
-
getEntityDeletionOrder
- Specified by:
getEntityDeletionOrder
in classAbstractEngineConfigurator
-
initProcessEngine
-
getProcessEngineConfiguration
-
setProcessEngineConfiguration
public ProcessEngineConfigurator setProcessEngineConfiguration(ProcessEngineConfiguration processEngineConfiguration) -
getJobServiceConfiguration
protected JobServiceConfiguration getJobServiceConfiguration(AbstractEngineConfiguration engineConfiguration)
-