Package | Description |
---|---|
org.axonframework.commandhandling.annotation |
Classes that provide annotation support for command handling.
|
org.axonframework.common.annotation |
Contains the main classes for annotation support in Axon Framework.
|
org.axonframework.contextsupport.spring | |
org.axonframework.eventhandling.annotation |
Classes in support of the configuration of Event Handlers using annotations.
|
org.axonframework.eventsourcing |
Classes related to event sourcing.
|
org.axonframework.eventsourcing.annotation | |
org.axonframework.saga.annotation | |
org.axonframework.test |
Classes in support of testing Axon based applications.
|
Modifier and Type | Class and Description |
---|---|
class |
CurrentUnitOfWorkParameterResolverFactory
ParameterResolverFactory that add support for the UnitOfWork parameter type in annotated handlers.
|
Modifier and Type | Method and Description |
---|---|
static <T extends AggregateRoot> |
ConstructorCommandMessageHandler.forConstructor(Constructor<T> constructor,
ParameterResolverFactory parameterResolverFactory)
Creates a ConstructorCommandMessageHandler for the given
constructor . |
protected AnnotationCommandHandlerAdapter |
AnnotationCommandHandlerBeanPostProcessor.initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory) |
void |
AggregateAnnotationCommandHandlerFactoryBean.setParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Sets the ParameterResolverFactory to create parameter resolver instances with.
|
Constructor and Description |
---|
AggregateAnnotationCommandHandler(Class<T> aggregateType,
Repository<T> repository,
CommandTargetResolver commandTargetResolver,
ParameterResolverFactory parameterResolverFactory)
Initializes an AnnotationCommandHandler based on the annotations on given
aggregateType , using the
given repository to add and load aggregate instances and the given
parameterResolverFactory . |
AggregateCommandHandlerInspector(Class<T> targetType,
ParameterResolverFactory parameterResolverFactory)
Initialize an MethodMessageHandlerInspector, where the given
annotationType is used to annotate the
Event Handler methods. |
AnnotationCommandHandlerAdapter(Object annotatedCommandHandler,
ParameterResolverFactory parameterResolverFactory)
Wraps the given
annotatedCommandHandler , allowing it to be subscribed to a Command Bus. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultParameterResolverFactory
Factory for the default parameter resolvers.
|
class |
MultiParameterResolverFactory
ParameterResolverFactory instance that delegates to multiple other instances, in the order provided.
|
class |
SpringBeanParameterResolverFactory
ParameterResolverFactory implementation that resolves parameters in the Spring Application Context.
|
Modifier and Type | Method and Description |
---|---|
static ParameterResolverFactory |
ClasspathParameterResolverFactory.forClass(Class<?> clazz)
Creates an instance for the given
clazz . |
static ParameterResolverFactory |
ClasspathParameterResolverFactory.forClassLoader(ClassLoader classLoader)
Creates an instance using the given
classLoader . |
Modifier and Type | Method and Description |
---|---|
List<ParameterResolverFactory> |
MultiParameterResolverFactory.getDelegates()
Returns the delegates of this instance, in the order they are evaluated to resolve parameters.
|
Modifier and Type | Method and Description |
---|---|
static MethodMessageHandler |
MethodMessageHandler.createFor(Method method,
Class<?> explicitPayloadType,
ParameterResolverFactory parameterResolverFactory)
Creates a MethodMessageHandler for the given
method , using given explicitPayloadType
(if not null ) defining the payload of the message it supports. |
protected static ParameterResolver[] |
AbstractMessageHandler.findResolvers(ParameterResolverFactory parameterResolverFactory,
Annotation[] memberAnnotations,
Class<?>[] parameterTypes,
Annotation[][] parameterAnnotations,
boolean resolvePayload)
Finds ParameterResolvers for the given Member details.
|
static <T extends Annotation> |
MethodMessageHandlerInspector.getInstance(Class<?> handlerClass,
Class<T> annotationType,
ParameterResolverFactory parameterResolverFactory,
boolean allowDuplicates)
Returns a MethodMessageHandlerInspector for the given
handlerClass that contains handler methods
annotated with the given annotationType . |
static MethodMessageHandlerInspector |
MethodMessageHandlerInspector.getInstance(Class<?> handlerClass,
ParameterResolverFactory parameterResolverFactory,
boolean allowDuplicates,
HandlerDefinition<? super Method> handlerDefinition)
Returns a MethodMessageHandlerInspector for the given
handlerClass that contains handler methods
annotated with the given annotationType . |
protected abstract T |
AbstractAnnotationHandlerBeanPostProcessor.initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory)
Create an AnnotationEventListenerAdapter instance of the given
bean . |
static MultiParameterResolverFactory |
MultiParameterResolverFactory.ordered(ParameterResolverFactory... delegates)
Creates a MultiParameterResolverFactory instance with the given
delegates , which are automatically
ordered based on the @Priority annotation on their respective classes. |
void |
AbstractAnnotationHandlerBeanPostProcessor.setParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Sets the ParameterResolverFactory to create the Parameter Resolvers with that provide the parameter values for
the handler methods.
|
Modifier and Type | Method and Description |
---|---|
static MultiParameterResolverFactory |
MultiParameterResolverFactory.ordered(List<ParameterResolverFactory> delegates)
Creates a MultiParameterResolverFactory instance with the given
delegates , which are automatically
ordered based on the @Priority annotation on their respective classes. |
Constructor and Description |
---|
MessageHandlerInvoker(Object target,
ParameterResolverFactory parameterResolverFactory,
boolean allowDuplicates,
HandlerDefinition<? super Method> handlerDefinition)
Initialize a handler invoker for the given
target object that has handler method annotated with
given annotationType . |
MultiParameterResolverFactory(ParameterResolverFactory... delegates)
Initializes an instance that delegates to the given
delegates , in the order provided. |
Constructor and Description |
---|
MultiParameterResolverFactory(List<ParameterResolverFactory> delegates)
Initializes an instance that delegates to the given
delegates , in the order provided. |
Modifier and Type | Method and Description |
---|---|
ParameterResolverFactory |
SpringParameterResolverFactoryBean.getObject() |
ParameterResolverFactory |
ApplicationContextLookupParameterResolverFactory.getObject() |
Modifier and Type | Method and Description |
---|---|
void |
SpringParameterResolverFactoryBean.setAdditionalFactories(List<ParameterResolverFactory> additionalFactories)
Defines any additional parameter resovler factories that need to be use to resolve parameters.
|
Constructor and Description |
---|
ApplicationContextLookupParameterResolverFactory(List<ParameterResolverFactory> defaultFactories)
Creates an instance, using the given
defaultFactories . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAnnotatedParameterResolverFactory<A,P>
ParameterResolverFactory that will supply a parameter resolver when a matching parameter annotation is paired
with a suitable type of parameter.
|
class |
SequenceNumberParameterResolverFactory
An extension of the AbstractAnnotatedParameterResolverFactory that accepts parameters of a
Long type
annotated with the SequenceNumber annotation and assigns the sequenceNumber of the DomainEventMessage. |
class |
TimestampParameterResolverFactory
AbstractAnnotatedParameterResolverFactory that accepts parameters with type
DateTime that are annotated
with the Timestamp annotation and assigns the timestamp of the EventMessage. |
Modifier and Type | Method and Description |
---|---|
protected AnnotationEventListenerAdapter |
AnnotationEventListenerBeanPostProcessor.initializeAdapterFor(Object bean,
ParameterResolverFactory parameterResolverFactory) |
Constructor and Description |
---|
AnnotationEventListenerAdapter(Object annotatedEventListener,
ParameterResolverFactory parameterResolverFactory)
Wraps the given
annotatedEventListener , allowing it to be subscribed to an Event Bus. |
Modifier and Type | Method and Description |
---|---|
void |
SpringPrototypeAggregateFactory.setParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Sets the parameter resolver with which parameters of annotated event handlers in the aggregae are resolved.
|
Constructor and Description |
---|
AbstractAggregateFactory(ParameterResolverFactory parameterResolverFactory) |
GenericAggregateFactory(Class<T> aggregateType,
ParameterResolverFactory parameterResolverFactory)
Initialize the AggregateFactory for creating instances of the given
aggregateType and using the
given parameterResolverFactory to resolve parameters of annotated event handler methods. |
Modifier and Type | Method and Description |
---|---|
protected ParameterResolverFactory |
AbstractAnnotatedEntity.createParameterResolverFactory()
Creates (or returns) a ParameterResolverFactory which is used by this aggregate root to resolve the parameters
for @EventSourcingHandler annotated methods.
|
protected ParameterResolverFactory |
AbstractAnnotatedAggregateRoot.createParameterResolverFactory()
Creates (or returns) a ParameterResolverFactory which is used by this aggregate root to resolve the parameters
for @EventSourcingHandler annotated methods.
|
Modifier and Type | Method and Description |
---|---|
static AggregateAnnotationInspector |
AggregateAnnotationInspector.getInspector(Class<?> entityType,
ParameterResolverFactory parameterResolverFactory)
Returns (or creates) an inspector for the given
entityType . |
void |
AbstractAnnotatedAggregateRoot.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Registers the given
parameterResolverFactory with this aggregate instance. |
Modifier and Type | Method and Description |
---|---|
ParameterResolverFactory |
SagaMethodMessageHandlerInspector.getParameterResolverFactory()
Returns the ParameterResolverFactory used by this inspector to resolve values for handler parameters
|
Modifier and Type | Method and Description |
---|---|
static <T extends AbstractAnnotatedSaga> |
SagaMethodMessageHandlerInspector.getInstance(Class<T> sagaType,
ParameterResolverFactory parameterResolverFactory)
Returns a SagaMethodMessageHandlerInspector for the given
sagaType . |
protected void |
AbstractAnnotatedSaga.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Sets the ParameterResolverFactory for this instance to use.
|
Constructor and Description |
---|
AnnotatedSagaManager(SagaRepository sagaRepository,
ParameterResolverFactory parameterResolverFactory,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
Initialize the AnnotatedSagaManager using given
repository to load sagas and supporting given
annotated sagaClasses . |
AnnotatedSagaManager(SagaRepository sagaRepository,
SagaFactory sagaFactory,
ParameterResolverFactory parameterResolverFactory,
Class<? extends AbstractAnnotatedSaga>... sagaClasses)
Initialize the AnnotatedSagaManager using the given resources.
|
AsyncAnnotatedSagaManager(ParameterResolverFactory parameterResolverFactory,
Class<? extends AbstractAnnotatedSaga>... sagaTypes)
Initializes an Asynchronous Saga Manager using default values for the given
sagaTypes . |
SagaMethodMessageHandlerInspector(Class<T> sagaType,
ParameterResolverFactory parameterResolverFactory)
Initialize the inspector to handle events for the given
sagaType . |
Modifier and Type | Class and Description |
---|---|
class |
FixtureResourceParameterResolverFactory
ParameterResolverFactory implementation that is aware of test-specific use cases.
|
Copyright © 2010-2014. All Rights Reserved.