Package org.flowable.common.engine.impl
Interface ServiceConfigurator<S>
- Type Parameters:
S
- The configurable service / configuration
public interface ServiceConfigurator<S>
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the service boots up, before it is usable, but after the initialisation of internal objects is done.void
beforeInit
(S service) Called before any initialisation has been done.default int
When theServiceConfigurator
instances are used, they are first ordered by this priority number (lowest to highest).
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY- See Also:
-
-
Method Details
-
beforeInit
Called before any initialisation has been done. This can for example be useful to change configuration settings before anything that uses those properties is created. Allows to tweak the service by passing it, which allows tweaking it programmatically. -
afterInit
Called when the service boots up, before it is usable, but after the initialisation of internal objects is done. Allows to tweak it by passing it, which allows tweaking it programmatically. -
getPriority
default int getPriority()When theServiceConfigurator
instances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies betweenServiceConfigurator
instances, use the priorities accordingly to order them as needed.
-