Class EventSourcingConfigurationDefaults
java.lang.Object
org.axonframework.eventsourcing.configuration.EventSourcingConfigurationDefaults
- All Implemented Interfaces:
ConfigurationEnhancer
A
ConfigurationEnhancer registering the default components of the EventSourcingConfigurer.
This enhancer disables the EventBusConfigurationDefaults to prevent duplicate EventBus
registration, as the EventStore implementation serves as the EventBus in event sourcing scenarios.
Will only register the following components if there is no component registered for the given class yet:
- Registers a
AnnotationBasedTagResolverfor classTagResolver - Registers a
InMemoryEventStorageEnginefor classEventStorageEngine - Registers a
StorageEngineBackedEventStorefor classEventStore
- The
EventStorein aInterceptingEventStoreif there are anyMessageDispatchInterceptorspresent in theDispatchInterceptorRegistry.
- Since:
- 5.0.0
- Author:
- Steven van Beelen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order ofthisenhancer compared to others, equal to 100 positions beforeMessagingConfigurationDefaults(thus,MessagingConfigurationDefaults.ENHANCER_ORDER- 100). -
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_ORDERThe order ofthisenhancer compared to others, equal to 100 positions beforeMessagingConfigurationDefaults(thus,MessagingConfigurationDefaults.ENHANCER_ORDER- 100).- See Also:
-
-
Constructor Details
-
EventSourcingConfigurationDefaults
public EventSourcingConfigurationDefaults()
-
-
Method Details
-
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.
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-