Package io.axoniq.framework.postgresql
Class PostgresqlConfigurationEnhancer
java.lang.Object
io.axoniq.framework.postgresql.PostgresqlConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
A
ConfigurationEnhancer that is auto-loadable by the ApplicationConfigurer, setting the
PostgresqlEventStorageEngine as the EventStorageEngine to use when no other is present.
The ENHANCER_ORDER is set such that this ConfigurationEnhancer will follow after the
AxonServerConfigurationEnhancer, thus giving precedence over to the Axon Server EventStorageEngine.
- Since:
- 1.0.0
- Author:
- Steven van Beelen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry registry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
ENHANCER_ORDER
public static final int ENHANCER_ORDERTheorder()of this enhancer. Positioned after the Axon ServerConfigurationEnhancer(Integer.MIN_VALUE + 10).- See Also:
-
-
Constructor Details
-
PostgresqlConfigurationEnhancer
public PostgresqlConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-