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 Details

    • repository

      public static <T> Repository<T> repository(Class<T> aggregateType, 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.