Class SpringBeanDependencyResolverFactory

java.lang.Object
org.axonframework.spring.config.annotation.SpringBeanDependencyResolverFactory
All Implemented Interfaces:
org.axonframework.messaging.annotation.ParameterResolverFactory

public class SpringBeanDependencyResolverFactory extends Object implements org.axonframework.messaging.annotation.ParameterResolverFactory
ParameterResolverFactory implementation that resolves parameters using Spring dependency resolution. Mark a parameter as Autowired to resolve said parameter using Spring dependency resolution.
Since:
4.5
Author:
Joel Feinstein
See Also:
  • Autowired
  • Constructor Details

    • SpringBeanDependencyResolverFactory

      public SpringBeanDependencyResolverFactory(@NonNull org.springframework.context.ApplicationContext applicationContext)
      Default constructor requiring an application context, for use internally by Axon.
      Parameters:
      applicationContext - The Spring application context for the executing application
  • 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