public class ReplayContextParameterResolverFactory extends Object implements ParameterResolverFactory
ParameterResolverFactory which resolves the parameter annotated with
ReplayContext. Will resolve the parameter if the Message is a
TrackedEventMessage, containing a ReplayToken with a matching context
of that type. Otherwise, it will resolve always to null.
This parameter resolver will always match to prevent missing event handlers.
| Constructor and Description |
|---|
ReplayContextParameterResolverFactory() |
| 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. |
public ReplayContextParameterResolverFactory()
public ParameterResolver 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.