|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UpcastingContext
Interface describing an object that provides contextual information about the object being upcast. Generally, this is information about the Message containing the object to upcast.
| Method Summary | |
|---|---|
Object |
getAggregateIdentifier()
Returns the Identifier of the Aggregate to which the Event owning the object to upcast, was applied. |
String |
getMessageIdentifier()
Returns the identifier of the message wrapping the object to upcast. |
MetaData |
getMetaData()
Returns the meta data of the message wrapping the object being upcast. |
Long |
getSequenceNumber()
Returns the sequence number of the event in the aggregate, or null if the message wrapping the
object being upcast does not contain a sequence number. |
org.joda.time.DateTime |
getTimestamp()
Returns the timestamp at which the event was first created. |
| Method Detail |
|---|
String getMessageIdentifier()
Object getAggregateIdentifier()
null if the object being upcast was not contained in a DomainEventMessage.
null if not applicableLong getSequenceNumber()
null if the message wrapping the
object being upcast does not contain a sequence number.
org.joda.time.DateTime getTimestamp()
null if the object being
upcast
MetaData getMetaData()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||