Package org.camunda.bpm.engine.impl.cfg
Class CompositeProcessEnginePlugin
java.lang.Object
org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin
org.camunda.bpm.engine.impl.cfg.CompositeProcessEnginePlugin
- All Implemented Interfaces:
ProcessEnginePlugin
ProcessEnginePlugin
that provides composite behavior. When registered on an engine configuration,
all plugins added to this composite will be triggered on preInit/postInit/postProcessEngineBuild.
Use to encapsulate common behavior (like engine configuration).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNew instance with empty list.New instance with initial plugins.CompositeProcessEnginePlugin
(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins) New instance with vararg. -
Method Summary
Modifier and TypeMethodDescriptionaddProcessEnginePlugin
(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins) Add one (or more) plugins.Add collection of plugins.Get all plugins.void
postInit
(ProcessEngineConfigurationImpl processEngineConfiguration) Invoked after the process engine configuration is initialized.void
postProcessEngineBuild
(ProcessEngine processEngine) Invoked after the process engine has been built.void
preInit
(ProcessEngineConfigurationImpl processEngineConfiguration) Invoked before the process engine configuration is initialized.toString()
-
Field Details
-
plugins
-
-
Constructor Details
-
CompositeProcessEnginePlugin
public CompositeProcessEnginePlugin()New instance with empty list. -
CompositeProcessEnginePlugin
public CompositeProcessEnginePlugin(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins) New instance with vararg.- Parameters:
plugin
- first pluginadditionalPlugins
- additional vararg plugins
-
CompositeProcessEnginePlugin
New instance with initial plugins.- Parameters:
plugins
- the initial plugins. Must not be null.
-
-
Method Details
-
addProcessEnginePlugin
public CompositeProcessEnginePlugin addProcessEnginePlugin(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins) Add one (or more) plugins.- Parameters:
plugin
- first pluginadditionalPlugins
- additional vararg plugins- Returns:
- self for fluent usage
-
addProcessEnginePlugins
public CompositeProcessEnginePlugin addProcessEnginePlugins(Collection<ProcessEnginePlugin> plugins) Add collection of plugins. If collection is not sortable, order of plugin execution can not be guaranteed.- Parameters:
plugins
- plugins to add- Returns:
- self for fluent usage
-
preInit
Description copied from interface:ProcessEnginePlugin
Invoked before the process engine configuration is initialized.
- Specified by:
preInit
in interfaceProcessEnginePlugin
- Overrides:
preInit
in classAbstractProcessEnginePlugin
- Parameters:
processEngineConfiguration
- the process engine configuation
-
postInit
Description copied from interface:ProcessEnginePlugin
Invoked after the process engine configuration is initialized. and before the process engine is built.
- Specified by:
postInit
in interfaceProcessEnginePlugin
- Overrides:
postInit
in classAbstractProcessEnginePlugin
- Parameters:
processEngineConfiguration
- the process engine configuation
-
postProcessEngineBuild
Description copied from interface:ProcessEnginePlugin
Invoked after the process engine has been built.
- Specified by:
postProcessEngineBuild
in interfaceProcessEnginePlugin
- Overrides:
postProcessEngineBuild
in classAbstractProcessEnginePlugin
-
getPlugins
Get all plugins.- Returns:
- the configured plugins
-
toString
- Overrides:
toString
in classAbstractProcessEnginePlugin
-