Class ConfigurationParameterResolverFactory

java.lang.Object
org.axonframework.config.ConfigurationParameterResolverFactory
All Implemented Interfaces:
ParameterResolverFactory

public class ConfigurationParameterResolverFactory extends Object implements ParameterResolverFactory
ParameterResolverFactory implementation that resolves parameters from available components in the Configuration instance it was configured with.

This implementation is usually auto-configured when using the Configuration API.

  • Constructor Details

    • ConfigurationParameterResolverFactory

      public ConfigurationParameterResolverFactory(Configuration configuration)
      Initialize an instance using given configuration to supply the value to resolve parameters with
      Parameters:
      configuration - The configuration to look for component
  • 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