|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.upcasting.AbstractSingleEntryUpcaster<org.dom4j.Document> org.axonframework.quickstart.RunUpcaster.ToDoItemUpcaster
public static class RunUpcaster.ToDoItemUpcaster
This is our upcaster. It converts the XML representation of a ToItemCreatedEvent to a NewToDoItemWithDeadlineCreatedEvent. The latter contains an explicit deadline of the task at hand.
Constructor Summary | |
---|---|
RunUpcaster.ToDoItemUpcaster()
|
Method Summary | |
---|---|
boolean |
canUpcast(SerializedType serializedType)
Indicates whether this upcaster is capable of upcasting the given type . |
org.dom4j.Document |
doUpcast(SerializedObject<org.dom4j.Document> intermediateRepresentation,
UpcastingContext context)
Upcasts the given intermediateRepresentation into zero or more other representations. |
SerializedType |
doUpcast(SerializedType serializedType)
Upcast the given serializedType into its new format. |
Class<org.dom4j.Document> |
expectedRepresentationType()
Returns the type of intermediate representation this upcaster expects. |
Methods inherited from class org.axonframework.upcasting.AbstractSingleEntryUpcaster |
---|
upcast, upcast |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunUpcaster.ToDoItemUpcaster()
Method Detail |
---|
public boolean canUpcast(SerializedType serializedType)
Upcaster
type
. Unless this method returns
true
, the Upcaster.upcast(org.axonframework.serializer.SerializedType)
and Upcaster.upcast(org.axonframework.serializer.SerializedType)
methods should not be
invoked on this Upcaster instance.
serializedType
- The type under investigation
true
if this upcaster can upcast the given serialized type, false
otherwise.public Class<org.dom4j.Document> expectedRepresentationType()
Upcaster
public org.dom4j.Document doUpcast(SerializedObject<org.dom4j.Document> intermediateRepresentation, UpcastingContext context)
AbstractSingleEntryUpcaster
intermediateRepresentation
into zero or more other representations. The returned
list of Serialized Objects must match the given list of serialized types.
This method may return null
to indicate a deprecated object.
doUpcast
in class AbstractSingleEntryUpcaster<org.dom4j.Document>
intermediateRepresentation
- The representation of the object to upcastcontext
- An instance describing the context of the object to upcast
public SerializedType doUpcast(SerializedType serializedType)
AbstractSingleEntryUpcaster
serializedType
into its new format. Generally, this involves increasing the
revision. Sometimes, it is also necessary to alter the type's name (in case of a renamed class, for example).
If null
is returned, the Serialized object of this type is considered deprecated and will not be
subject to upcasting.
doUpcast
in class AbstractSingleEntryUpcaster<org.dom4j.Document>
serializedType
- The serialized type to upcast
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |