Interface AggregateConfiguration<A>

Type Parameters:
A - The type of Aggregate defined in this Configuration
All Superinterfaces:
ModuleConfiguration
All Known Implementing Classes:
AggregateConfigurer

public interface AggregateConfiguration<A> extends ModuleConfiguration
Specialization of the Module Configuration for modules that define an Aggregate Configuration. This interface allows components to retrieve the Repository used to load Aggregates of the type defined in this Configuration.
Since:
3.0
Author:
Allard Buijze
  • Method Details

    • repository

      Repository<A> repository()
      Returns the repository defined to load instances of the Aggregate type defined in this configuration.
      Returns:
      the repository to load aggregates
    • aggregateType

      Class<A> aggregateType()
      Returns the type of Aggregate defined in this configuration.
      Returns:
      the type of Aggregate defined in this configuration
    • aggregateFactory

      AggregateFactory<A> aggregateFactory()
      Returns the AggregateFactory defined in this configuration.
      Returns:
      the AggregateFactory defined in this configuration.
    • snapshotFilter

      SnapshotFilter snapshotFilter()
      Returns the SnapshotFilter defined in this configuration.
      Returns:
      the SnapshotFilter defined in this configuration