com.ibm.ws.serialization
Interface DeserializationObjectResolver
- public interface DeserializationObjectResolver
- A bundle wants to allow an object to be serialized normally, but needs to modify the state of the object after deserialization (for example, to reconnect a serialized Stub).
- A bundle needs to deserialize an object specific to the context in which
it is being deserialized (for example, an EJBContext). In this case, the
bundle should typically use
SerializationContext.addObjectReplacer(com.ibm.ws.serialization.SerializationObjectReplacer)
to add a custom serialized form, andDeserializationContext.addObjectResolver(com.ibm.ws.serialization.DeserializationObjectResolver)
to recognize the object and return a context-specific object. Note that the class of the serialized form will typically need to be made visible viaDeserializationClassProvider
.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
resolveObject(java.lang.Object object)
Resolves an object after deserialization.
|
Method Detail
resolveObject
- java.lang.Object resolveObject( java.lang.Object object)
Parameters:
object
- the object being resolved Returns:
the resolved object, or null if no resolution is needed
Implementations are strongly encouraged to annotate the parameter with
Sensitive
to avoid tracing user data.