Package | Description |
---|---|
org.axonframework.commandhandling |
Classes that implement the concept of command handling using explicit command objects.
|
org.axonframework.commandhandling.disruptor | |
org.axonframework.commandhandling.model | |
org.axonframework.commandhandling.model.inspection | |
org.axonframework.config | |
org.axonframework.eventhandling |
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus . |
org.axonframework.eventhandling.saga | |
org.axonframework.eventhandling.saga.metamodel | |
org.axonframework.eventhandling.saga.repository | |
org.axonframework.eventsourcing |
Classes related to event sourcing.
|
org.axonframework.messaging.annotation | |
org.axonframework.queryhandling.annotation | |
org.axonframework.spring.config | |
org.axonframework.spring.config.annotation | |
org.axonframework.spring.eventsourcing | |
org.axonframework.test.aggregate | |
org.axonframework.test.saga |
Constructor and Description |
---|
AggregateAnnotationCommandHandler(Class<T> aggregateType,
Repository<T> repository,
CommandTargetResolver commandTargetResolver,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes an AnnotationCommandHandler based on the annotations on given
aggregateType , using the given
repository to add and load aggregate instances, the given parameterResolverFactory to resolve
parameters which are required by handlers and the given handlerDefinition used to create handlers. |
AnnotationCommandHandlerAdapter(Object annotatedCommandHandler,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Wraps the given
annotatedCommandHandler , allowing it to be subscribed to a Command Bus. |
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 . |
Constructor and Description |
---|
AbstractRepository(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes a repository that stores aggregate of the given
aggregateType . |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
RepositoryProvider repositoryProvider,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory . |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
RepositoryProvider repositoryProvider,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
Function<String,?> identifierConverter)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory and allowing for a custom identifierConverter to convert a String based identifier to an
Identifier Object. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
RepositoryProvider repositoryProvider,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initialize a repository for storing aggregates of the given
aggregateType . |
LockingRepository(Class<T> aggregateType,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initialize the repository with the given
lockFactory , parameterResolverFactory and handlerDefinition . |
LockingRepository(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initialize a repository with a pessimistic locking strategy and a parameter resolver factory.
|
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. |
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 |
---|---|
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.
|
Constructor and Description |
---|
AnnotationEventListenerAdapter(Object annotatedEventListener,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Wraps the given
annotatedEventListener , allowing it to be subscribed to an Event Bus. |
Constructor and Description |
---|
AnnotatedSagaManager(Class<T> sagaType,
SagaRepository<T> sagaRepository,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
ListenerInvocationErrorHandler listenerInvocationErrorHandler)
Initialize the AnnotatedSagaManager using given
repository to load sagas. |
Constructor and Description |
---|
AnnotationSagaMetaModelFactory(ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes a
AnnotationSagaMetaModelFactory with given parameterResolverFactory and given handlerDefinition . |
Constructor and Description |
---|
AnnotatedSagaRepository(Class<T> sagaType,
SagaStore<? super T> sagaStore,
ResourceInjector resourceInjector,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Initializes an AnnotatedSagaRepository for given
sagaType that stores sagas in the given sagaStore . |
Constructor and Description |
---|
AggregateSnapshotter(EventStore eventStore,
List<AggregateFactory<?>> aggregateFactories,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
Executor executor,
TransactionManager transactionManager,
RepositoryProvider repositoryProvider)
Initializes a snapshotter that stores snapshots using the given
executor . |
AggregateSnapshotter(EventStore eventStore,
List<AggregateFactory<?>> aggregateFactories,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
RepositoryProvider repositoryProvider)
Initializes a snapshotter using the given
parameterResolverFactory . |
CachingEventSourcingRepository(AggregateFactory<T> aggregateFactory,
EventStore eventStore,
LockFactory lockFactory,
Cache cache,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
SnapshotTriggerDefinition snapshotTriggerDefinition,
RepositoryProvider repositoryProvider)
Initializes a repository with a the given
aggregateFactory and a pessimistic locking strategy. |
EventSourcingRepository(AggregateFactory<T> aggregateFactory,
EventStore eventStore,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
SnapshotTriggerDefinition snapshotTriggerDefinition,
RepositoryProvider repositoryProvider)
Initialize a repository with the given locking strategy and parameter resolver factory.
|
EventSourcingRepository(AggregateFactory<T> aggregateFactory,
EventStore eventStore,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
SnapshotTriggerDefinition snapshotTriggerDefinition,
RepositoryProvider repositoryProvider)
Initializes a repository with the default locking strategy, using the given
aggregateFactory to
create new aggregate instances. |
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 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. |
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 |
---|---|
void |
SpringAggregateSnapshotterFactoryBean.setHandlerDefinition(HandlerDefinition handlerDefinition)
Sets handler definition to be able to create concrete handlers.
|
Constructor and Description |
---|
SpringAggregateSnapshotter(EventStore eventStore,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition,
Executor executor,
TransactionManager txManager,
RepositoryProvider repositoryProvider)
Initializes a snapshotter using the ParameterResolverFactory instances available on the classpath.
|
Modifier and Type | Method and Description |
---|---|
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers handler definition 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 handler definition within this fixture.
|
Copyright © 2010–2018. All rights reserved.