Interface RepositoryProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RepositoryProvider
Provides a repository for given aggregate type.
Since:
3.3
Author:
Milan Savic
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Repository<T>
    repositoryFor(Class<T> aggregateType)
    Provides a repository for given aggregate type.
  • Method Details

    • repositoryFor

      <T> Repository<T> repositoryFor(@Nonnull Class<T> aggregateType)
      Provides a repository for given aggregate type.
      Type Parameters:
      T - type of the aggregate
      Parameters:
      aggregateType - type of the aggregate
      Returns:
      repository given for aggregate type