Marshalling API version 1.0.0.GA

org.jboss.marshalling
Interface ObjectResolver


public interface ObjectResolver

Resolver for substituting objects in a stream. The resolver is invoked on write before any serialization takes place.


Method Summary
 Object readResolve(Object replacement)
          Get the original object for a replacement object read from a stream.
 Object writeReplace(Object original)
          Get a replacement for an object being written to a stream.
 

Method Detail

readResolve

Object readResolve(Object replacement)
Get the original object for a replacement object read from a stream.

Parameters:
replacement - the replacement object
Returns:
the original

writeReplace

Object writeReplace(Object original)
Get a replacement for an object being written to a stream.

Parameters:
original - the original object
Returns:
the replacement

Marshalling API version 1.0.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.