|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.serializer.LazyDeserializingObject<T>
T - The type of object contained in the serialized objectpublic class LazyDeserializingObject<T>
Represents a serialized object that can be deserializedObjects upon request. Typically used as a wrapper class for keeping a SerializedObject and its Serializer together.
| Constructor Summary | |
|---|---|
LazyDeserializingObject(SerializedObject<?> serializedObject,
Serializer serializer)
|
|
LazyDeserializingObject(T deserializedObject)
Creates an instance with the given deserializedObject object instance. |
|
| Method Summary | |
|---|---|
T |
getObject()
De-serializes the object and returns the result. |
SerializedObject<?> |
getSerializedObject()
Returns the serialized object to deserialize upon request |
Serializer |
getSerializer()
Returns the serializer to deserialize this object |
Class<?> |
getType()
Returns the class of the serialized object. |
boolean |
isDeserialized()
Indicates whether this object has already been deserialized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyDeserializingObject(T deserializedObject)
deserializedObject object instance. Using this constructor will
ensure that no deserializing is required when invoking the getType() or getObject() methods.
deserializedObject - The deserialized object to return on getObject()
public LazyDeserializingObject(SerializedObject<?> serializedObject,
Serializer serializer)
serializedObject - The serialized payload of the messageserializer - The serializer to deserialize the payload data with
UnknownSerializedTypeException - if the type of the serialized object cannot be resolved to a class| Method Detail |
|---|
public Class<?> getType()
public T getObject()
public boolean isDeserialized()
true, the
getObject() method is able to return a value without invoking the serializer.
public Serializer getSerializer()
public SerializedObject<?> getSerializedObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||