@ComponentSpecification public interface Serializer
serialize and deserialize arbitrary
Java objects. As a default implementation we offer JavaSerializer but
there can be many alternative implementations like JSon, GWT RPC, etc. deserialize(serialize(o)) should have behave like
creating a deep-clone. serialized. By default they have to be compliant with
Serializable. However, specific implementations may have additional or alternate requirements. E.g.
for GWT (Google Web Toolkit) the object has to have a non-arg constructor (may be protected) and
shall not have final fields.| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] data)
De-serializes (or un-marshals) the given
serialized data back to the corresponding
Object. |
byte[] |
serialize(Object object)
Serializes (or marshals) the given
Object to serialized data. |
byte[] serialize(Object object)
Object to serialized data.Object deserialize(byte[] data)
serialized data back to the corresponding
Object.data - is the serialized data.Copyright © 2001–2016 mmm-Team. All rights reserved.