Interface EventHandlingComponentsConfigurer.ComponentsPhase
- All Known Subinterfaces:
EventHandlingComponentsConfigurer.AdditionalComponentPhase,EventHandlingComponentsConfigurer.RequiredComponentPhase
- All Known Implementing Classes:
DefaultEventHandlingComponentsConfigurer
- Enclosing interface:
EventHandlingComponentsConfigurer
public static interface EventHandlingComponentsConfigurer.ComponentsPhase
Phase that allows configuring event handling components.
-
Method Summary
Modifier and TypeMethodDescriptionautodetected(String componentName, ComponentBuilder<Object> handlingComponentBuilder) Configures an auto-detected event handling component.autodetected(ComponentBuilder<Object> handlingComponentBuilder) Deprecated, for removal: This API element is subject to removal in a future version.declarative(String componentName, ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Configures a single event handling component.declarative(ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Deprecated, for removal: This API element is subject to removal in a future version.Usedeclarative(String, ComponentBuilder)to provide an explicit component name.
-
Method Details
-
declarative
@Deprecated(forRemoval=true) EventHandlingComponentsConfigurer.AdditionalComponentPhase declarative(ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Deprecated, for removal: This API element is subject to removal in a future version.Usedeclarative(String, ComponentBuilder)to provide an explicit component name. When no name is provided, the component receives its registration index as the name. Note that the generated index may differ across environments or application restarts, so it should not be relied upon for stable identification (e.g., in dead letter queues).Configures a single event handling component with an auto-generated index-based name.- Parameters:
handlingComponentBuilder- The component to configure.- Returns:
- The complete phase for decoration and finalization.
-
declarative
EventHandlingComponentsConfigurer.AdditionalComponentPhase declarative(String componentName, ComponentBuilder<EventHandlingComponent> handlingComponentBuilder) Configures a single event handling component.- Parameters:
componentName- The unique component name.handlingComponentBuilder- The component to configure.- Returns:
- The complete phase for decoration and finalization.
-
autodetected
@Deprecated(forRemoval=true) default EventHandlingComponentsConfigurer.AdditionalComponentPhase autodetected(ComponentBuilder<Object> handlingComponentBuilder) Deprecated, for removal: This API element is subject to removal in a future version.Useautodetected(String, ComponentBuilder)to provide an explicit component name. When no name is provided, the component receives its registration index as the name. Note that the generated index may differ across environments or application restarts, so it should not be relied upon for stable identification (e.g., in dead letter queues).Configures an auto-detected event handling component with an auto-generated index-based name.- Parameters:
handlingComponentBuilder- The component builder.- Returns:
- The additional component phase for further configuration.
-
autodetected
default EventHandlingComponentsConfigurer.AdditionalComponentPhase autodetected(String componentName, ComponentBuilder<Object> handlingComponentBuilder) Configures an auto-detected event handling component.- Parameters:
componentName- The unique component name.handlingComponentBuilder- The component builder.- Returns:
- The additional component phase for further configuration.
-
autodetected(String, ComponentBuilder)to provide an explicit component name.