Class HandlerDefinitionFactoryBean

java.lang.Object
org.axonframework.spring.config.annotation.HandlerDefinitionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>

public class HandlerDefinitionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>, org.springframework.beans.factory.BeanClassLoaderAware
Spring FactoryBean that creates a HandlerDefinition using configured HandlerDefinition and {@link HandlerEnhancerDefinition) beans (e.g. those configured in a Spring Application Context) and complements those found using a service loader on the Bean Class Loader.

This bean is to be used from a configuration file that auto wires the other HandlerDefinition and HandlerEnhancerDefinition beans from the Application Context.

Since:
4.6.0
Author:
Allard Buijze
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    HandlerDefinitionFactoryBean(List<org.axonframework.messaging.annotation.HandlerDefinition> definitions, List<org.axonframework.messaging.annotation.HandlerEnhancerDefinition> enhancerDefinitions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.axonframework.messaging.annotation.HandlerDefinition
     
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.FactoryBean

    isSingleton
  • Constructor Details

    • HandlerDefinitionFactoryBean

      public HandlerDefinitionFactoryBean(List<org.axonframework.messaging.annotation.HandlerDefinition> definitions, List<org.axonframework.messaging.annotation.HandlerEnhancerDefinition> enhancerDefinitions)
  • Method Details

    • getObject

      public org.axonframework.messaging.annotation.HandlerDefinition getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>
    • setBeanClassLoader

      public void setBeanClassLoader(@Nonnull ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware