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 Type
    Method
    Description
    createChildDefinition(Member member, EntityModel<T> declaringEntity)
    Inspect the given member, which is declared on the given declaringEntity for the presence of a Child Entity.
  • Method Details

    • createChildDefinition

      <T> Optional<ChildEntity<T>> createChildDefinition(Member member, EntityModel<T> declaringEntity)
      Inspect the given member, which is declared on the given declaringEntity for 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 entity
      declaringEntity - the entity model declaring the field
      Returns:
      an optional that resolved to a ChildEntity if the field represents a child