Interface AggregateMetaModelFactory

All Known Implementing Classes:
AnnotatedAggregateMetaModelFactory

public interface AggregateMetaModelFactory
Interface of a factory for an AggregateModel for any given type defining an aggregate.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> AggregateModel<T>
    createModel(Class<? extends T> aggregateType)
    Create an Aggregate meta model for the given aggregateType.
    createModel(Class<? extends T> aggregateType, Set<Class<? extends T>> subtypes)
    Create an Aggregate meta model for the given aggregateType and provided subtypes.
  • Method Details

    • createModel

      default <T> AggregateModel<T> createModel(Class<? extends T> aggregateType)
      Create an Aggregate meta model for the given aggregateType. The meta model will inspect the capabilities and characteristics of the given type.
      Type Parameters:
      T - The Aggregate type
      Parameters:
      aggregateType - The Aggregate class to be inspected
      Returns:
      Model describing the capabilities and characteristics of the inspected Aggregate class
    • createModel

      <T> AggregateModel<T> createModel(Class<? extends T> aggregateType, Set<Class<? extends T>> subtypes)
      Create an Aggregate meta model for the given aggregateType and provided subtypes. The meta model will inspect the capabilities and characteristics of the given aggregateType and its subtypes.
      Type Parameters:
      T - The Aggregate type
      Parameters:
      aggregateType - The Aggregate class to be inspected
      subtypes - Subtypes of this Aggregate class
      Returns:
      Model describing the capabilities and characteristics of the inspected Aggregate class and its subtypes