Class HierarchicalHandlerDefinitionConfigurationEnhancer

java.lang.Object
org.axonframework.messaging.core.reflection.HierarchicalHandlerDefinitionConfigurationEnhancer
All Implemented Interfaces:
ConfigurationEnhancer

public class HierarchicalHandlerDefinitionConfigurationEnhancer extends Object implements ConfigurationEnhancer
ConfigurationEnhancer that registers a decorator for the HandlerDefinition that, when a parent configuration is present, composes both the parent and the current HandlerDefinition into a MultiHandlerDefinition, re-assembled with the current, fully composed HandlerEnhancerDefinition.

Without this enhancer, a HandlerDefinition registered at a parent Configuration (e.g. a top-level MessagingConfigurer) would not be visible to a module's own, separate ComponentRegistry (e.g. an EventSourcedEntityModule), since every module resolves its own HandlerDefinition component independently.

Since:
5.3.2
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • HierarchicalHandlerDefinitionConfigurationEnhancer

      public HierarchicalHandlerDefinitionConfigurationEnhancer()
  • Method Details