public class CompositeProcessEnginePlugin extends AbstractProcessEnginePlugin
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).
Modifier and Type | Field and Description |
---|---|
protected List<ProcessEnginePlugin> |
plugins |
Constructor and Description |
---|
CompositeProcessEnginePlugin()
New instance with empty list.
|
CompositeProcessEnginePlugin(List<ProcessEnginePlugin> plugins)
New instance with initial plugins.
|
CompositeProcessEnginePlugin(ProcessEnginePlugin plugin,
ProcessEnginePlugin... additionalPlugins)
New instance with vararg.
|
Modifier and Type | Method and Description |
---|---|
CompositeProcessEnginePlugin |
addProcessEnginePlugin(ProcessEnginePlugin plugin,
ProcessEnginePlugin... additionalPlugins)
Add one (or more) plugins.
|
CompositeProcessEnginePlugin |
addProcessEnginePlugins(Collection<ProcessEnginePlugin> plugins)
Add collection of plugins.
|
List<ProcessEnginePlugin> |
getPlugins()
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.
|
String |
toString() |
protected final List<ProcessEnginePlugin> plugins
public CompositeProcessEnginePlugin()
public CompositeProcessEnginePlugin(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins)
plugin
- first pluginadditionalPlugins
- additional vararg pluginspublic CompositeProcessEnginePlugin(List<ProcessEnginePlugin> plugins)
plugins
- the initial plugins. Must not be null.public CompositeProcessEnginePlugin addProcessEnginePlugin(ProcessEnginePlugin plugin, ProcessEnginePlugin... additionalPlugins)
plugin
- first pluginadditionalPlugins
- additional vararg pluginspublic CompositeProcessEnginePlugin addProcessEnginePlugins(Collection<ProcessEnginePlugin> plugins)
plugins
- plugins to addpublic void preInit(ProcessEngineConfigurationImpl processEngineConfiguration)
ProcessEnginePlugin
Invoked before the process engine configuration is initialized.
preInit
in interface ProcessEnginePlugin
preInit
in class AbstractProcessEnginePlugin
processEngineConfiguration
- the process engine configuationpublic void postInit(ProcessEngineConfigurationImpl processEngineConfiguration)
ProcessEnginePlugin
Invoked after the process engine configuration is initialized. and before the process engine is built.
postInit
in interface ProcessEnginePlugin
postInit
in class AbstractProcessEnginePlugin
processEngineConfiguration
- the process engine configuationpublic void postProcessEngineBuild(ProcessEngine processEngine)
ProcessEnginePlugin
Invoked after the process engine has been built.
postProcessEngineBuild
in interface ProcessEnginePlugin
postProcessEngineBuild
in class AbstractProcessEnginePlugin
public List<ProcessEnginePlugin> getPlugins()
public String toString()
toString
in class AbstractProcessEnginePlugin
Copyright © 2018. All rights reserved.