public interface SerializationObjectReplacer
In either case, the bundle would provide a replacer to recognize the
object and return a serialized form, and would add a resolveObject method to
the class of the serialized form class to recreate the original object. Note
that the class of the serialized form will typically need to be made visible
via DeserializationClassProvider
.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
replaceObject(java.lang.Object object)
Replaces non-serialization objects prior to serialization.
|
java.lang.Object replaceObject(java.lang.Object object)
Implementations are strongly encouraged to annotate the parameter
with Sensitive
to avoid tracing user data.
object
- the object being serialized