public interface EngineConfigurator
AbstractEngineConfiguration. Such implementations can configure the engine in any way programmatically possible.| Modifier and Type | Method and Description |
|---|---|
void |
beforeInit(AbstractEngineConfiguration engineConfiguration)
Called before any initialisation has been done.
|
void |
configure(AbstractEngineConfiguration engineConfiguration)
Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done.
|
int |
getPriority()
When the
EngineConfigurator instances are used, they are first ordered by this priority number (lowest to highest). |
void beforeInit(AbstractEngineConfiguration engineConfiguration)
AbstractEngineConfiguration which allows tweaking it programmatically.
An example is the jdbc url. When a EngineConfigurator instance wants to change it, it needs to do it in this method, or otherwise the datasource would already have been created
with the 'old' value for the jdbc url.void configure(AbstractEngineConfiguration engineConfiguration)
AbstractEngineConfiguration 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 the
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' (cfr beforeInit(AbstractEngineConfiguration)), but not possible due to backwards compatibility.int getPriority()
EngineConfigurator instances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies between
EngineConfigurator instances, use the priorities accordingly to order them as needed.Copyright © 2019 Flowable. All rights reserved.