public class DeadLetterParameterResolverFactory extends Object implements ParameterResolverFactory
ParameterResolverFactory constructing a ParameterResolver resolving the DeadLetter that is
being processed.
Expects the DeadLetter to reside under the UnitOfWork.resources() using the class
name of the DeadLetter as the key. Hence, the DeadLetter processor is
required to add it to the resources before invoking the message handlers. If no UnitOfWork is active or there
is no DeadLetter is present, the resolver will return null.
The parameter resolver matches for any type of Message.
| Constructor and Description |
|---|
DeadLetterParameterResolverFactory() |
| Modifier and Type | Method and Description |
|---|---|
ParameterResolver<DeadLetter<?>> |
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. |
public ParameterResolver<DeadLetter<?>> createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
ParameterResolverFactoryparameterType for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.
createInstance in interface ParameterResolverFactoryexecutable - 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–2023. All rights reserved.