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 TypeMethodDescriptionvoidconfigure(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 JobServiceConfigurationgetJobServiceConfiguration(AbstractEngineConfiguration engineConfiguration) protected StringintWhen theEngineConfiguratorinstances are used, they are first ordered by this priority number (lowest to highest).protected voidinitDbSqlSessionFactory(AbstractEngineConfiguration engineConfiguration, AbstractEngineConfiguration targetEngineConfiguration) protected ProcessEnginesetProcessEngineConfiguration(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:EngineConfiguratorWhen theEngineConfiguratorinstances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies betweenEngineConfiguratorinstances, use the priorities accordingly to order them as needed. -
getCustomDeployers
- Specified by:
getCustomDeployersin classAbstractEngineConfigurator
-
getMybatisCfgPath
- Specified by:
getMybatisCfgPathin 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:EngineConfiguratorCalled 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 theAbstractEngineConfigurationwhich 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:
initDbSqlSessionFactoryin classAbstractEngineConfigurator
-
getEntityInsertionOrder
- Specified by:
getEntityInsertionOrderin classAbstractEngineConfigurator
-
getEntityDeletionOrder
- Specified by:
getEntityDeletionOrderin classAbstractEngineConfigurator
-
initProcessEngine
-
getProcessEngineConfiguration
-
setProcessEngineConfiguration
public ProcessEngineConfigurator setProcessEngineConfiguration(ProcessEngineConfiguration processEngineConfiguration) -
getJobServiceConfiguration
protected JobServiceConfiguration getJobServiceConfiguration(AbstractEngineConfiguration engineConfiguration)
-