Uses of Interface
org.axonframework.messaging.annotation.HandlerDefinition
Packages that use HandlerDefinition
Package
Description
Classes that implement the concept of command handling using explicit command objects.
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus.Classes related to event sourcing.
-
Uses of HandlerDefinition in org.axonframework.commandhandling
Constructors in org.axonframework.commandhandling with parameters of type HandlerDefinitionModifierConstructorDescriptionAnnotationCommandHandlerAdapter(T annotatedCommandHandler, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Wraps the givenannotatedCommandHandler, allowing it to be subscribed to a Command Bus. -
Uses of HandlerDefinition in org.axonframework.config
Methods in org.axonframework.config that return HandlerDefinitionModifier and TypeMethodDescriptionprotected HandlerDefinitionDefaultConfigurer.defaultHandlerDefinition(Class<?> inspectedClass) Provides the default HandlerDefinition.Configuration.handlerDefinition(Class<?> inspectedType) Returns the Handler Definition defined in this Configuration for the giveninspectedType.Method parameters in org.axonframework.config with type arguments of type HandlerDefinitionModifier and TypeMethodDescriptionConfigurer.registerHandlerDefinition(BiFunction<Configuration, Class, HandlerDefinition> handlerDefinitionClass) Registers the definition of a Handler class.DefaultConfigurer.registerHandlerDefinition(BiFunction<Configuration, Class, HandlerDefinition> handlerDefinitionClass) -
Uses of HandlerDefinition in org.axonframework.disruptor.commandhandling
Methods in org.axonframework.disruptor.commandhandling with parameters of type HandlerDefinitionModifier and TypeMethodDescription<T> Repository<T> CommandHandlerInvoker.createRepository(EventStore eventStore, RepositoryProvider repositoryProvider, AggregateFactory<T> aggregateFactory, SnapshotTriggerDefinition snapshotTriggerDefinition, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Create a repository instance for an aggregate created by the givenaggregateFactory.<T> Repository<T> DisruptorCommandBus.createRepository(EventStore eventStore, AggregateFactory<T> aggregateFactory, SnapshotTriggerDefinition snapshotTriggerDefinition, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition, RepositoryProvider repositoryProvider) Creates a repository instance for an Event Sourced aggregate, sourced from giveneventStore, that is created by the givenaggregateFactory.<T> Repository<T> DisruptorCommandBus.createRepository(EventStore eventStore, AggregateFactory<T> aggregateFactory, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition, RepositoryProvider repositoryProvider) Creates a repository instance for an Event Sourced aggregate that is created by the givenaggregateFactoryand sourced from giveneventStore. -
Uses of HandlerDefinition in org.axonframework.eventhandling
Methods in org.axonframework.eventhandling with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionSimpleEventHandlerInvoker.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers in the annotated handlers in theAnnotationEventHandlerAdapterthisEventHandlerInvokerinstantiates.Constructors in org.axonframework.eventhandling with parameters of type HandlerDefinitionModifierConstructorDescriptionAnnotationEventHandlerAdapter(Object annotatedEventListener, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Wraps the givenannotatedEventListener, allowing it to be subscribed to an Event Bus. -
Uses of HandlerDefinition in org.axonframework.eventsourcing
Methods in org.axonframework.eventsourcing that return HandlerDefinitionModifier and TypeMethodDescriptionprotected HandlerDefinitionAggregateSnapshotter.Builder.buildHandlerDefinition()Return the setHandlerDefinition, or create and return it if it isnull.Methods in org.axonframework.eventsourcing with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAggregateSnapshotter.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers in the snapshot aggregate this snapshotter creates.EventSourcingRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) -
Uses of HandlerDefinition in org.axonframework.messaging.annotation
Classes in org.axonframework.messaging.annotation that implement HandlerDefinitionModifier and TypeClassDescriptionclassThe default HandlerDefinition implementation in Axon.classHandlerDefinition instance that delegates to multiple other instances, in the order provided.Methods in org.axonframework.messaging.annotation that return types with arguments of type HandlerDefinitionModifier and TypeMethodDescriptionMultiHandlerDefinition.getDelegates()Returns the delegates of this instance, in the order they are evaluated to resolve parameters.Methods in org.axonframework.messaging.annotation with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionstatic <T> AnnotatedHandlerInspector<T> AnnotatedHandlerInspector.inspectType(Class<? extends T> handlerType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Create an inspector for givenhandlerTypethat uses givenparameterResolverFactoryto resolve method parameters and givenhandlerDefinitionto create handlers.static <T> AnnotatedHandlerInspector<T> AnnotatedHandlerInspector.inspectType(Class<? extends T> handlerType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition, Set<Class<? extends T>> declaredSubtypes) Create an inspector for givenhandlerTypeand itsdeclaredSubtypesthat uses givenparameterResolverFactoryto resolve method parameters and givenhandlerDefinitionto create handlers.static MultiHandlerDefinitionMultiHandlerDefinition.ordered(HandlerDefinition... delegates) Creates a MultiHandlerDefinition instance with the givendelegates, which are automatically ordered based on the@Priorityannotation on their respective classes.static MultiHandlerDefinitionMultiHandlerDefinition.ordered(HandlerEnhancerDefinition handlerEnhancerDefinition, HandlerDefinition... delegates) Creates a MultiHandlerDefinition instance with the givendelegates, which are automatically ordered based on the@Priorityannotation on their respective classes.Method parameters in org.axonframework.messaging.annotation with type arguments of type HandlerDefinitionModifier and TypeMethodDescriptionstatic MultiHandlerDefinitionMultiHandlerDefinition.ordered(List<HandlerDefinition> delegates) Creates a MultiHandlerDefinition instance with the givendelegates, which are automatically ordered based on the@Priorityannotation on their respective classes.static MultiHandlerDefinitionMultiHandlerDefinition.ordered(List<HandlerDefinition> delegates, HandlerEnhancerDefinition handlerEnhancerDefinition) Creates a MultiHandlerDefinition instance with the givendelegates, which are automatically ordered based on the@Priorityannotation on their respective classes.Constructors in org.axonframework.messaging.annotation with parameters of type HandlerDefinitionModifierConstructorDescriptionMultiHandlerDefinition(HandlerDefinition... delegates) Initializes an instance that delegates to the givendelegates, in the order provided.Constructor parameters in org.axonframework.messaging.annotation with type arguments of type HandlerDefinitionModifierConstructorDescriptionMultiHandlerDefinition(List<HandlerDefinition> delegates) Initializes an instance that delegates to the givendelegates, in the order provided.MultiHandlerDefinition(List<HandlerDefinition> delegates, HandlerEnhancerDefinition handlerEnhancerDefinition) Initializes an instance that delegates to the givendelegates, in the order provided. -
Uses of HandlerDefinition in org.axonframework.modelling.command
Methods in org.axonframework.modelling.command with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAbstractRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers for the givenaggregateType.AggregateAnnotationCommandHandler.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers for the givenaggregateType.GenericJpaRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) LockingRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) -
Uses of HandlerDefinition in org.axonframework.modelling.command.inspection
Methods in org.axonframework.modelling.command.inspection with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionstatic <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Shorthand to create a factory instance and inspect the model for the givenaggregateType, using givenparameterResolverFactoryto resolve parameter values for annotated handlers andhandlerDefinitionto create concrete handlers.static <T> AggregateModel<T> AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition, Set<Class<? extends T>> subtypes) Shorthand to create a factory instance and inspect the model for the givenaggregateTypeand itssubytpes, using givenparameterResolverFactoryto resolve parameter values for annotated handlers andhandlerDefinitionto create concrete handlers.Constructors in org.axonframework.modelling.command.inspection with parameters of type HandlerDefinitionModifierConstructorDescriptionAnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Initializes an instance which uses the givenparameterResolverFactoryto detect parameters for annotated handlers andhandlerDefinitionto create concrete handlers. -
Uses of HandlerDefinition in org.axonframework.modelling.command.legacyjpa
Methods in org.axonframework.modelling.command.legacyjpa with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionGenericJpaRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) -
Uses of HandlerDefinition in org.axonframework.modelling.saga
Methods in org.axonframework.modelling.saga with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAnnotatedSagaManager.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers for the givensagaType. -
Uses of HandlerDefinition in org.axonframework.modelling.saga.metamodel
Constructors in org.axonframework.modelling.saga.metamodel with parameters of type HandlerDefinitionModifierConstructorDescriptionAnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Initializes aAnnotationSagaMetaModelFactorywith givenparameterResolverFactoryand givenhandlerDefinition. -
Uses of HandlerDefinition in org.axonframework.modelling.saga.repository
Methods in org.axonframework.modelling.saga.repository with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAnnotatedSagaRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) Sets theHandlerDefinitionused to create concrete handlers for the givensagaType. -
Uses of HandlerDefinition in org.axonframework.queryhandling.annotation
Constructors in org.axonframework.queryhandling.annotation with parameters of type HandlerDefinitionModifierConstructorDescriptionAnnotationQueryHandlerAdapter(T target, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Initializes the adapter, forwarding call to the giventarget, resolving parameters using the givenparameterResolverFactoryand creating handlers usinghandlerDefinition. -
Uses of HandlerDefinition in org.axonframework.spring.config
Methods in org.axonframework.spring.config that return HandlerDefinitionModifier and TypeMethodDescriptionAxonConfiguration.handlerDefinition(Class<?> inspectedType) Deprecated.Methods in org.axonframework.spring.config with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionprotected abstract TAbstractAnnotationHandlerBeanPostProcessor.initializeAdapterFor(Object bean, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Deprecated.Create an AnnotationEventListenerAdapter instance of the givenbean.voidAbstractAnnotationHandlerBeanPostProcessor.setHandlerDefinition(HandlerDefinition handlerDefinition) Deprecated.Sets the HandlerDefinition to create concrete handlers. -
Uses of HandlerDefinition in org.axonframework.spring.config.annotation
Methods in org.axonframework.spring.config.annotation that return HandlerDefinitionModifier and TypeMethodDescriptionHandlerDefinitionFactoryBean.getObject()SpringHandlerDefinitionBean.getObject()Deprecated.Methods in org.axonframework.spring.config.annotation with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionprotected AnnotationCommandHandlerAdapter<?> AnnotationCommandHandlerBeanPostProcessor.initializeAdapterFor(Object bean, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Deprecated.protected AnnotationQueryHandlerAdapterAnnotationQueryHandlerBeanPostProcessor.initializeAdapterFor(Object o, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition) Deprecated.Method parameters in org.axonframework.spring.config.annotation with type arguments of type HandlerDefinitionModifier and TypeMethodDescriptionvoidSpringHandlerDefinitionBean.setAdditionalHandlers(List<HandlerDefinition> additionalFactories) Deprecated.Defines any additional handler definitions that should be used.Constructor parameters in org.axonframework.spring.config.annotation with type arguments of type HandlerDefinitionModifierConstructorDescriptionHandlerDefinitionFactoryBean(List<HandlerDefinition> definitions, List<HandlerEnhancerDefinition> enhancerDefinitions) -
Uses of HandlerDefinition in org.axonframework.spring.eventsourcing
Methods in org.axonframework.spring.eventsourcing with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionSpringAggregateSnapshotter.Builder.handlerDefinition(HandlerDefinition handlerDefinition) voidSpringAggregateSnapshotterFactoryBean.setHandlerDefinition(HandlerDefinition handlerDefinition) Sets handler definition to be able to create concrete handlers. -
Uses of HandlerDefinition in org.axonframework.springboot.autoconfig
Methods in org.axonframework.springboot.autoconfig with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAxonAutoConfiguration.aggregateSnapshotter(Configuration configuration, HandlerDefinition handlerDefinition, ParameterResolverFactory parameterResolverFactory, EventStore eventStore, TransactionManager transactionManager, SnapshotterSpanFactory spanFactory) Method parameters in org.axonframework.springboot.autoconfig with type arguments of type HandlerDefinitionModifier and TypeMethodDescriptionInfraConfiguration.handlerDefinition(List<HandlerDefinition> handlerDefinitions, List<HandlerEnhancerDefinition> handlerEnhancerDefinitions) -
Uses of HandlerDefinition in org.axonframework.test.aggregate
Methods in org.axonframework.test.aggregate with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionAggregateTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition) Registers aHandlerDefinitionwithin this fixture. -
Uses of HandlerDefinition in org.axonframework.test.saga
Methods in org.axonframework.test.saga with parameters of type HandlerDefinitionModifier and TypeMethodDescriptionFixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition) Registers aHandlerDefinitionwithin this fixture.SagaTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition)