Class ReplayParameterResolverFactory

java.lang.Object
org.axonframework.eventhandling.replay.ReplayParameterResolverFactory
All Implemented Interfaces:
ParameterResolverFactory

public class ReplayParameterResolverFactory extends Object implements 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 Details

    • ReplayParameterResolverFactory

      public ReplayParameterResolverFactory()
  • Method Details

    • createInstance

      public ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
      Description copied from interface: ParameterResolverFactory
      If available, creates a ParameterResolver instance that can provide a parameter of type parameterType for a given message.

      If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.

      Specified by:
      createInstance in interface ParameterResolverFactory
      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 a ParameterResolver for
      Returns:
      a suitable ParameterResolver, or null if none is found