Class DefaultEventHandlingComponentsConfigurer
java.lang.Object
org.axonframework.messaging.eventhandling.configuration.DefaultEventHandlingComponentsConfigurer
- All Implemented Interfaces:
EventHandlingComponentsConfigurer.AdditionalComponentPhase,EventHandlingComponentsConfigurer.CompletePhase,EventHandlingComponentsConfigurer.ComponentsPhase,EventHandlingComponentsConfigurer.RequiredComponentPhase
@Internal
public class DefaultEventHandlingComponentsConfigurer
extends Object
implements EventHandlingComponentsConfigurer.RequiredComponentPhase, EventHandlingComponentsConfigurer.AdditionalComponentPhase, EventHandlingComponentsConfigurer.CompletePhase
Default implementation of
EventHandlingComponentsConfigurer providing EventHandlingComponents`
builders management with decoration support.- Since:
- 5.0.0
- Author:
- Mateusz Nowak
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty configurer instance. -
Method Summary
Modifier and TypeMethodDescriptiondeclarative(ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Configures a single event handling component.Applies a decorator to all components in the collection.toList()Returns the configured list of event handling components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.eventhandling.configuration.EventHandlingComponentsConfigurer.CompletePhase
buildMethods inherited from interface org.axonframework.messaging.eventhandling.configuration.EventHandlingComponentsConfigurer.ComponentsPhase
autodetected
-
Constructor Details
-
DefaultEventHandlingComponentsConfigurer
public DefaultEventHandlingComponentsConfigurer()Creates a new empty configurer instance.
-
-
Method Details
-
declarative
@Nonnull public EventHandlingComponentsConfigurer.AdditionalComponentPhase declarative(@Nonnull ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Description copied from interface:EventHandlingComponentsConfigurer.ComponentsPhaseConfigures a single event handling component.- Specified by:
declarativein interfaceEventHandlingComponentsConfigurer.ComponentsPhase- Parameters:
handlingComponentBuilder- The component to configure.- Returns:
- The complete phase for decoration and finalization.
-
decorated
@Nonnull public EventHandlingComponentsConfigurer.CompletePhase decorated(@Nonnull BiFunction<Configuration, EventHandlingComponent, EventHandlingComponent> decorator) Description copied from interface:EventHandlingComponentsConfigurer.CompletePhaseApplies a decorator to all components in the collection.- Specified by:
decoratedin interfaceEventHandlingComponentsConfigurer.CompletePhase- Parameters:
decorator- Function to decorate each component.- Returns:
- This phase for further decoration or finalization.
-
toList
Description copied from interface:EventHandlingComponentsConfigurer.CompletePhaseReturns the configured list of event handling components.- Specified by:
toListin interfaceEventHandlingComponentsConfigurer.CompletePhase- Returns:
- The immutable list of configured components.
-