Class FixtureResourceParameterResolverFactory

java.lang.Object
org.axonframework.test.FixtureResourceParameterResolverFactory
All Implemented Interfaces:
org.axonframework.messaging.annotation.ParameterResolverFactory

public final class FixtureResourceParameterResolverFactory extends Object implements org.axonframework.messaging.annotation.ParameterResolverFactory
ParameterResolverFactory implementation for use in test cases that prevent that all declared resources on message handlers need to be configured. This ParameterResolverFactory will return a parameter resolver for any parameter, but will fail when that resolver is being used.

Because of this behavior, it is important that any resource resolvers doing actual resolution are executed before this instance.

Since:
2.1
Author:
Allard Buijze
  • Constructor Details

    • FixtureResourceParameterResolverFactory

      public FixtureResourceParameterResolverFactory()
  • Method Details

    • createInstance

      public org.axonframework.messaging.annotation.ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
      Specified by:
      createInstance in interface org.axonframework.messaging.annotation.ParameterResolverFactory