JBoss Marshalling 1.2.1.GA

org.jboss.marshalling
Interface ObjectResolver

All Known Implementing Classes:
ChainingObjectResolver

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

JBoss Marshalling 1.2.1.GA

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