Package | Description |
---|---|
org.axonframework.commandhandling |
Classes that implement the concept of command handling using explicit command objects.
|
org.axonframework.config | |
org.axonframework.disruptor.commandhandling | |
org.axonframework.eventhandling |
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus . |
org.axonframework.eventsourcing |
Classes related to event sourcing.
|
org.axonframework.messaging.annotation | |
org.axonframework.modelling.command | |
org.axonframework.modelling.command.inspection | |
org.axonframework.modelling.saga | |
org.axonframework.modelling.saga.metamodel | |
org.axonframework.modelling.saga.repository | |
org.axonframework.queryhandling.annotation | |
org.axonframework.spring.config | |
org.axonframework.spring.config.annotation | |
org.axonframework.spring.eventsourcing | |
org.axonframework.springboot.autoconfig | |
org.axonframework.test.aggregate | |
org.axonframework.test.saga |
Constructor and Description |
---|
AnnotationCommandHandlerAdapter(T annotatedCommandHandler,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Wraps the given
annotatedCommandHandler , allowing it to be subscribed to a Command Bus. |
Modifier and Type | Method and Description |
---|---|
protected HandlerDefinition |
DefaultConfigurer.defaultHandlerDefinition(Class<?> inspectedClass)
Provides the default HandlerDefinition.
|
HandlerDefinition |
Configuration.handlerDefinition(Class<?> inspectedType)
Returns the Handler Definition defined in this Configuration for the given
inspectedType . |
Modifier and Type | Method and Description |
---|---|
Configurer |
DefaultConfigurer.registerHandlerDefinition(BiFunction<Configuration,Class,HandlerDefinition> handlerDefinitionClass) |
Configurer |
Configurer.registerHandlerDefinition(BiFunction<Configuration,Class,HandlerDefinition> handlerDefinitionClass)
Registers the definition of a Handler class.
|
Modifier and Type | Method and Description |
---|---|
<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 given
aggregateFactory and sourced from given eventStore . |
<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 given
eventStore , that is
created by the given aggregateFactory . |
<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 given
aggregateFactory . |
Modifier and Type | Method and Description |
---|---|
SimpleEventHandlerInvoker.Builder |
SimpleEventHandlerInvoker.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers in the annotated handlers in the
AnnotationEventHandlerAdapter this EventHandlerInvoker instantiates. |
Constructor and Description |
---|
AnnotationEventHandlerAdapter(Object annotatedEventListener,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Wraps the given
annotatedEventListener , allowing it to be subscribed to an Event Bus. |
Modifier and Type | Method and Description |
---|---|
protected HandlerDefinition |
AggregateSnapshotter.Builder.buildHandlerDefinition()
Return the set
HandlerDefinition , or create and return it if it is null . |
Modifier and Type | Method and Description |
---|---|
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) |
AggregateSnapshotter.Builder |
AggregateSnapshotter.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers in the snapshot aggregate this
snapshotter creates. |
Modifier and Type | Class and Description |
---|---|
class |
AnnotatedMessageHandlingMemberDefinition
The default HandlerDefinition implementation in Axon.
|
class |
MultiHandlerDefinition
HandlerDefinition instance that delegates to multiple other instances, in the order provided.
|
Modifier and Type | Method and Description |
---|---|
List<HandlerDefinition> |
MultiHandlerDefinition.getDelegates()
Returns the delegates of this instance, in the order they are evaluated to resolve parameters.
|
Modifier and Type | Method and Description |
---|---|
static <T> AnnotatedHandlerInspector<T> |
AnnotatedHandlerInspector.inspectType(Class<? extends T> handlerType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Create an inspector for given
handlerType that uses given parameterResolverFactory to resolve
method parameters and given handlerDefinition to 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 given
handlerType and its declaredSubtypes that uses given parameterResolverFactory to resolve method parameters and given handlerDefinition to create handlers. |
static MultiHandlerDefinition |
MultiHandlerDefinition.ordered(HandlerDefinition... delegates)
Creates a MultiHandlerDefinition instance with the given
delegates , which are automatically ordered
based
on the @Priority annotation on their respective classes. |
static MultiHandlerDefinition |
MultiHandlerDefinition.ordered(HandlerEnhancerDefinition handlerEnhancerDefinition,
HandlerDefinition... delegates)
Creates a MultiHandlerDefinition instance with the given
delegates , which are automatically ordered
based
on the @Priority annotation on their respective classes. |
Modifier and Type | Method and Description |
---|---|
static MultiHandlerDefinition |
MultiHandlerDefinition.ordered(List<HandlerDefinition> delegates)
Creates a MultiHandlerDefinition instance with the given
delegates , which are automatically ordered based
on the @Priority annotation on their respective classes. |
static MultiHandlerDefinition |
MultiHandlerDefinition.ordered(List<HandlerDefinition> delegates,
HandlerEnhancerDefinition handlerEnhancerDefinition)
Creates a MultiHandlerDefinition instance with the given
delegates , which are automatically ordered based
on the @Priority annotation on their respective classes. |
Constructor and Description |
---|
MultiHandlerDefinition(HandlerDefinition... delegates)
Initializes an instance that delegates to the given
delegates , in the order provided. |
Constructor and Description |
---|
MultiHandlerDefinition(List<HandlerDefinition> delegates)
Initializes an instance that delegates to the given
delegates , in the order provided. |
MultiHandlerDefinition(List<HandlerDefinition> delegates,
HandlerEnhancerDefinition handlerEnhancerDefinition)
Initializes an instance that delegates to the given
delegates , in the order provided. |
Modifier and Type | Method and Description |
---|---|
LockingRepository.Builder<T> |
LockingRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) |
GenericJpaRepository.Builder<T> |
GenericJpaRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) |
AggregateAnnotationCommandHandler.Builder<T> |
AggregateAnnotationCommandHandler.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers for the given aggregateType . |
AbstractRepository.Builder<T> |
AbstractRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers for the given aggregateType . |
Modifier and Type | Method and Description |
---|---|
static <T> AggregateModel<T> |
AnnotatedAggregateMetaModelFactory.inspectAggregate(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Shorthand to create a factory instance and inspect the model for the given
aggregateType , using given
parameterResolverFactory to resolve parameter values for annotated handlers and handlerDefinition
to 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 given
aggregateType and its subytpes , using given parameterResolverFactory to resolve parameter values for annotated handlers and
handlerDefinition to create concrete handlers. |
Constructor and Description |
---|
AnnotatedAggregateMetaModelFactory(ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes an instance which uses the given
parameterResolverFactory to detect parameters for annotated
handlers and handlerDefinition to create concrete handlers. |
Modifier and Type | Method and Description |
---|---|
AnnotatedSagaManager.Builder<T> |
AnnotatedSagaManager.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers for the given sagaType . |
Constructor and Description |
---|
AnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes a
AnnotationSagaMetaModelFactory with given parameterResolverFactory and given handlerDefinition . |
Modifier and Type | Method and Description |
---|---|
AnnotatedSagaRepository.Builder<T> |
AnnotatedSagaRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition)
Sets the
HandlerDefinition used to create concrete handlers for the given sagaType . |
Constructor and Description |
---|
AnnotationQueryHandlerAdapter(T target,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes the adapter, forwarding call to the given
target , resolving parameters using the given parameterResolverFactory and creating handlers using handlerDefinition . |
Modifier and Type | Method and Description |
---|---|
HandlerDefinition |
AxonConfiguration.handlerDefinition(Class<?> inspectedType) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
AbstractAnnotationHandlerBeanPostProcessor.initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Create an AnnotationEventListenerAdapter instance of the given
bean . |
void |
AbstractAnnotationHandlerBeanPostProcessor.setHandlerDefinition(HandlerDefinition handlerDefinition)
Sets the HandlerDefinition to create concrete handlers.
|
Modifier and Type | Method and Description |
---|---|
HandlerDefinition |
SpringHandlerDefinitionBean.getObject() |
Modifier and Type | Method and Description |
---|---|
protected AnnotationQueryHandlerAdapter |
AnnotationQueryHandlerBeanPostProcessor.initializeAdapterFor(Object o,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition) |
protected AnnotationCommandHandlerAdapter<?> |
AnnotationCommandHandlerBeanPostProcessor.initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition) |
Modifier and Type | Method and Description |
---|---|
void |
SpringHandlerDefinitionBean.setAdditionalHandlers(List<HandlerDefinition> additionalFactories)
Defines any additional handler definitions that should be used.
|
Modifier and Type | Method and Description |
---|---|
SpringAggregateSnapshotter.Builder |
SpringAggregateSnapshotter.Builder.handlerDefinition(HandlerDefinition handlerDefinition) |
void |
SpringAggregateSnapshotterFactoryBean.setHandlerDefinition(HandlerDefinition handlerDefinition)
Sets handler definition to be able to create concrete handlers.
|
Modifier and Type | Method and Description |
---|---|
SpringAggregateSnapshotter |
AxonAutoConfiguration.aggregateSnapshotter(Configuration configuration,
HandlerDefinition handlerDefinition,
ParameterResolverFactory parameterResolverFactory,
EventStore eventStore,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers a
HandlerDefinition within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) |
Modifier and Type | Method and Description |
---|---|
FixtureConfiguration |
SagaTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) |
FixtureConfiguration |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers a
HandlerDefinition within this fixture. |
Copyright © 2010–2022. All rights reserved.