Class SpringRepositoryFactoryBean<T>

java.lang.Object
org.axonframework.spring.modelling.SpringRepositoryFactoryBean<T>
Type Parameters:
T - The aggregate type
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Repository<T>>

@Deprecated public class SpringRepositoryFactoryBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<Repository<T>>
Deprecated.
Instead of using a factory bean, consider retrieving the Repository directly from the Axon Configuration. Alternatively, when building a BeanDefinition, use the BeanHelper factory methods to retrieve it.
Supplies the Repository created by the SpringAggregateConfigurer to the Spring Application Context. This will allow it to be injected as a bean.
Since:
4.6.1
Author:
Mitchell Herrijgers
  • Constructor Details

    • SpringRepositoryFactoryBean

      public SpringRepositoryFactoryBean(Class<T> aggregateClass)
      Deprecated.
      Constructs the SpringRepositoryFactoryBean for the provided aggregateClass.
      Parameters:
      aggregateClass - The aggregate's class
  • Method Details

    • getObject

      public Repository<T> getObject() throws Exception
      Deprecated.
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<T>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Deprecated.
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
    • setConfiguration

      public void setConfiguration(Configuration configuration)
      Deprecated.
      Sets the Configuration that the Repository will be retrieved from.
      Parameters:
      configuration - The Configuration for usage in the factory bean.