View Javadoc

1   package net.sourceforge.rpgee.messaging;
2   
3   import net.sourceforge.rpgee.messaging.exceptions.RpgMessageException;
4   
5   
6   /**
7    * A RpgMessageTransformer takes one form of a message and produces another. The transformed message may be retyped or not.
8    * If the result is null, the message is considered deleted (i.e. transformed to null) and becomes a "filter"
9    * @author Mykel
10   *
11   * @param <T> Source message type
12   * @param <K> Resultant message type
13   */
14  public interface RpgMessageTransformer<T,K> {
15      public RpgMessage<K> transform(RpgMessage<T> inMessage) throws RpgMessageException;
16  
17  }