@FunctionalInterface public interface ParameterResolverFactory
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.
ClasspathParameterResolverFactory
Modifier and Type | Method and Description |
---|---|
ParameterResolver |
createInstance(Executable executable,
Parameter[] parameters,
int parameterIndex)
If available, creates a ParameterResolver instance that can provide a parameter of type
parameterType for a given message. |
ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.
executable
- The executable (constructor or method) to inspectparameters
- The parameters on the executable to inspectparameterIndex
- The index of the parameter to return a ParameterResolver fornull
if none is foundCopyright © 2010–2024. All rights reserved.