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 TypeMethodDescriptiondefault <T> AggregateModel<T> createModel(Class<? extends T> aggregateType) Create an Aggregate meta model for the givenaggregateType.<T> AggregateModel<T> createModel(Class<? extends T> aggregateType, Set<Class<? extends T>> subtypes) Create an Aggregate meta model for the givenaggregateTypeand providedsubtypes.
-
Method Details
-
createModel
Create an Aggregate meta model for the givenaggregateType. 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 givenaggregateTypeand providedsubtypes. The meta model will inspect the capabilities and characteristics of the givenaggregateTypeand itssubtypes.- Type Parameters:
T- The Aggregate type- Parameters:
aggregateType- The Aggregate class to be inspectedsubtypes- Subtypes of this Aggregate class- Returns:
- Model describing the capabilities and characteristics of the inspected Aggregate class and its subtypes
-