|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventSerializer
Interface describing classes that can serialize and deserialize DomainEvents to bytes.
| Method Summary | |
|---|---|
DomainEvent |
deserialize(byte[] serializedEvent)
Deserialize a DomainEvent using the given serializedEvents. |
byte[] |
serialize(DomainEvent event)
Serialize the given events into a byte[]. |
| Method Detail |
|---|
byte[] serialize(DomainEvent event)
events into a byte[]. The actual encoding used depends on the implementation.
event - The event to serialize
DomainEvent deserialize(byte[] serializedEvent)
serializedEvents. Implementations are *not* allowed to
change the given serializedEvent (byte array).
serializedEvent - The byte array containing the serialized domain event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||