Interface ChildEntity<T>

Type Parameters:
T - defining the parent class this ChildEntity belongs to
All Known Implementing Classes:
AnnotatedChildEntity

public interface ChildEntity<T>
Interface describing en entity that is a child of another entity.
Since:
3.0
Author:
Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the command handlers declared in this entity.
    void
    publish(EventMessage<?> msg, T declaringInstance)
    Publish the given msg to the appropriate handlers on the given declaringInstance.
  • Method Details

    • publish

      void publish(EventMessage<?> msg, T declaringInstance)
      Publish the given msg to the appropriate handlers on the given declaringInstance.
      Parameters:
      msg - the message to publish
      declaringInstance - the instance of this entity to invoke handlers on
    • commandHandlers

      List<MessageHandlingMember<? super T>> commandHandlers()
      Returns the command handlers declared in this entity.
      Returns:
      a list of MessageHandlingMembers that are capable of processing command messages