Class ReplayParameterResolverFactory
java.lang.Object
org.axonframework.messaging.eventhandling.replay.annotation.ReplayParameterResolverFactory
- All Implemented Interfaces:
ParameterResolverFactory
An implementation of the
ParameterResolverFactory which resolves the
ReplayStatus parameter.
Will resolve a ReplayStatus.REPLAY parameter if the ProcessingContext is a contains a
ReplayToken. Otherwise, it will resolve a ReplayStatus.REGULAR parameter.
- Since:
- 3.2.0
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(Executable executable, Parameter[] parameters, int parameterIndex) If available, creates aParameterResolverinstance that can provide a parameter of typeparameterTypefor a given message.
-
Constructor Details
-
ReplayParameterResolverFactory
public ReplayParameterResolverFactory()
-
-
Method Details
-
createInstance
@Nullable public ParameterResolver<ReplayStatus> createInstance(@Nonnull Executable executable, @Nonnull Parameter[] parameters, int parameterIndex) Description copied from interface:ParameterResolverFactoryIf available, creates aParameterResolverinstance that can provide a parameter of typeparameterTypefor a given message.If the
ParameterResolverFactorycannot provide a suitableParameterResolver, returnsnull.- Specified by:
createInstancein interfaceParameterResolverFactory- Parameters:
executable- The executable (constructor or method) to inspect.parameters- The parameters on the executable to inspect.parameterIndex- The index of the parameter to return aParameterResolverfor.- Returns:
- A suitable
ParameterResolver, ornullif none is found.
-