org.apache.geronimo.messaging.io
Interface ReplacerResolver

All Known Implementing Classes:
AbstractReplacerResolver, MsgReplacerResolver

public interface ReplacerResolver

"Unifies" the resolveObject and replaceObject contracts used during deserialization and serialization respectively.
ReplacerResolvers are chained components.

Version:
$Revision: 1.2 $ $Date: 2004/05/27 14:18:13 $

Method Summary
 ReplacerResolver append(ReplacerResolver aNext)
          Appends a ReplacerResolver to this instance.
 ReplacerResolver getNext()
          Gets the next online element of the chain.
 boolean isOffline()
          Indicates if this instance if online.
 void offline()
          Sets this instance offline.
 void online()
          Sets this instance online.
 Object replaceObject(Object obj)
          Replaces obj with another object.
 Object resolveObject(Object obj)
          Resolves/replaces obj with another object.
 

Method Detail

replaceObject

public Object replaceObject(Object obj)
                     throws IOException
Replaces obj with another object.

Parameters:
obj - Object to be replaced.
Returns:
Substitute. If obj is not to be replaced, then obj must be returned.
Throws:
IOException - Indicates an I/O error.

resolveObject

public Object resolveObject(Object obj)
                     throws IOException
Resolves/replaces obj with another object.

Parameters:
obj - Object to be resolved/replaced.
Returns:
Substitute. If obj is not to be replaced, then obj must be returned.
Throws:
IOException - Indicates an I/O error.

append

public ReplacerResolver append(ReplacerResolver aNext)
Appends a ReplacerResolver to this instance.

Parameters:
aNext - Next ReplacerResolver of the chain.
Returns:
aNext.

getNext

public ReplacerResolver getNext()
Gets the next online element of the chain.

Returns:
Next element.

online

public void online()
Sets this instance online.
This instance can be added to a chain.


offline

public void offline()
Sets this instance offline.
This instance does no more belong to the chain.


isOffline

public boolean isOffline()
Indicates if this instance if online.

Returns:
true if online - it belongs to a chain.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.