Interface ChildEntityDefinition
- All Known Implementing Classes:
AbstractChildEntityDefinition,AggregateMemberAnnotatedChildEntityCollectionDefinition,AggregateMemberAnnotatedChildEntityDefinition,AggregateMemberAnnotatedChildEntityMapDefinition
public interface ChildEntityDefinition
Interface describing the definition of a Child Entity. These definitions are automatically detected by the
AnnotatedAggregateMetaModelFactory if the definition's implementations is registered in the
META-INF/services/org.axonframework.modelling.command.inspection.ChildEntityDefinition file.- Since:
- 3.0
- Author:
- Allard Buijze
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<ChildEntity<T>> createChildDefinition(Member member, EntityModel<T> declaringEntity) Inspect the givenmember, which is declared on the givendeclaringEntityfor the presence of a Child Entity.
-
Method Details
-
createChildDefinition
Inspect the givenmember, which is declared on the givendeclaringEntityfor the presence of a Child Entity.- Type Parameters:
T- the type of entity on which the field is declared- Parameters:
member- the member potentially containing a Child entitydeclaringEntity- the entity model declaring the field- Returns:
- an optional that resolved to a ChildEntity if the field represents a child
-