|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The data format that this upcaster uses to represent the eventpublic interface EventUpcaster<T>
Interface for Upcasters. An upcaster is the mechanism used to convert deprecated (typically serialized) events from the eventstore and convert them into the current format. If the serializer itself is not able to cope with the changed formats (XStream, for example, will allow for some changes by using aliases), the Upcaster will allow you to configure more complex structural transformations.
| Method Summary | |
|---|---|
Class<T> |
getSupportedRepresentation()
Since Java's generics are erased, this method allows serializers to verify the supported event representation of this upcaster. |
T |
upcast(T event)
Upcast the given event to make it parsable by the EventSerializer. |
| Method Detail |
|---|
Class<T> getSupportedRepresentation()
T upcast(T event)
event to make it parsable by the EventSerializer. Implementations may alter the
given event, and return a reference to the same instance.
event - The serialized event. This instance may have been processed by other upcasters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||