Interface ChildEntity<T>
- Type Parameters:
T- defining the parent class thisChildEntitybelongs 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 TypeMethodDescriptionList<MessageHandlingMember<? super T>> Returns the command handlers declared in this entity.voidpublish(EventMessage<?> msg, T declaringInstance) Publish the givenmsgto the appropriate handlers on the givendeclaringInstance.
-
Method Details
-
publish
Publish the givenmsgto the appropriate handlers on the givendeclaringInstance.- Parameters:
msg- the message to publishdeclaringInstance- 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
-