Class ReplayParameterResolverFactory
java.lang.Object
org.axonframework.eventhandling.replay.ReplayParameterResolverFactory
- All Implemented Interfaces:
ParameterResolverFactory
An implementation of the
ParameterResolverFactory which resolves the
ReplayStatus parameter. Will resolve a ReplayStatus.REPLAY parameter
if the Message is a TrackedEventMessage,
containing a ReplayToken. Otherwise, it will resolve a
ReplayStatus.REGULAR parameter.- Since:
- 3.2
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
ReplayParameterResolverFactory
public ReplayParameterResolverFactory()
-
-
Method Details
-
createInstance
public ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex) Description copied from interface:ParameterResolverFactoryIf 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.- Specified by:
createInstancein interfaceParameterResolverFactory- 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
-