org.jph.channels
Interface MessageCloner<M>

All Known Implementing Classes:
SelfMessageCloner

public interface MessageCloner<M>

The MessageCloner clones messages. It is not required that a new message should be created, the original message can be returned: see SelfMessageCloner.

todo: nothing is done with the messagecloner at the moment.

Author:
Peter Veentjer.

Method Summary
 M clone(M msg)
          Clones the msg.
 

Method Detail

clone

M clone(M msg)
Clones the msg.

Parameters:
msg - the message to clone.
Returns:
the cloned message.
Throws:
java.lang.NullPointerException - if msg is null


Copyright © 2005 Anchormen. All Rights Reserved.