Class BeanHelper

java.lang.Object
org.axonframework.spring.config.BeanHelper

public abstract class BeanHelper extends Object
Helper class to simplify the creation of bean definitions for components configured in Axon Configuration.
Since:
4.7.4
Author:
Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> org.axonframework.modelling.command.Repository<T>
    repository(Class<T> aggregateType, org.axonframework.config.Configuration configuration)
    Retrieves the Repository for given aggregateType from given configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • repository

      public static <T> org.axonframework.modelling.command.Repository<T> repository(Class<T> aggregateType, org.axonframework.config.Configuration configuration)
      Retrieves the Repository for given aggregateType from given configuration.
      Type Parameters:
      T - The type of aggregate.
      Parameters:
      aggregateType - The type to find the repository for.
      configuration - The configuration from which to retrieve the Repository.
      Returns:
      The Repository instance for the aggregate.
      Throws:
      IllegalArgumentException - if the given aggregateType has not been configured.