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<org.axonframework.modelling.command.Repository<T>>

@Deprecated public class SpringRepositoryFactoryBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<org.axonframework.modelling.command.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
  • Field Summary

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

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructs the SpringRepositoryFactoryBean for the provided aggregateClass.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.axonframework.modelling.command.Repository<T>
    Deprecated.
     
    Deprecated.
     
    void
    setConfiguration(org.axonframework.config.Configuration configuration)
    Deprecated.
    Sets the Configuration that the Repository will be retrieved from.

    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

    • SpringRepositoryFactoryBean

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

    • getObject

      public org.axonframework.modelling.command.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(org.axonframework.config.Configuration configuration)
      Deprecated.
      Sets the Configuration that the Repository will be retrieved from.
      Parameters:
      configuration - The Configuration for usage in the factory bean.