Interface ParameterResolverFactory
- All Known Implementing Classes:
AbstractAnnotatedParameterResolverFactory,AggregateTypeParameterResolverFactory,ConcludesBatchParameterResolverFactory,ConfigurationParameterResolverFactory,ConflictResolution,CurrentUnitOfWorkParameterResolverFactory,DeadLetterParameterResolverFactory,DefaultParameterResolverFactory,FixtureResourceParameterResolverFactory,InterceptorChainParameterResolverFactory,MessageIdentifierParameterResolverFactory,MultiParameterResolverFactory,ReplayContextParameterResolverFactory,ReplayParameterResolverFactory,ResultParameterResolverFactory,ScopeDescriptorParameterResolverFactory,SequenceNumberParameterResolverFactory,SimpleResourceParameterResolverFactory,SourceIdParameterResolverFactory,SpringBeanDependencyResolverFactory,SpringBeanParameterResolverFactory,TimestampParameterResolverFactory,TrackingTokenParameterResolverFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for objects capable of creating Parameter Resolver instances for annotated handler methods. These
resolvers provide the parameter values to use, given an incoming
Message.
One of the implementations is the ClasspathParameterResolverFactory, which allows application developers to
provide custom ParameterResolverFactory implementations using the ServiceLoader mechanism. To do so, place a file
called org.axonframework.messaging.annotation.ParameterResolverFactory in the
META-INF/services folder. In this file, place the fully qualified class names of all available
implementations.
The factory implementations must be public, non-abstract, have a default public constructor and implement the ParameterResolverFactory interface.
- Since:
- 2.1
- Author:
- Allard Buijze
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(Executable executable, Parameter[] parameters, int parameterIndex) If available, creates a ParameterResolver instance that can provide a parameter of typeparameterTypefor a given message.
-
Method Details
-
createInstance
If available, creates a ParameterResolver instance that can provide a parameter of typeparameterTypefor a given message.If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns
null.- Parameters:
executable- The executable (constructor or method) to inspectparameters- The parameters on the executable to inspectparameterIndex- The index of the parameter to return a ParameterResolver for- Returns:
- a suitable ParameterResolver, or
nullif none is found
-