org.asmatron.messengine.messaging
Class SimpleMessage<T>

java.lang.Object
  extended by org.asmatron.messengine.messaging.SimpleMessage<T>
All Implemented Interfaces:
Message<T>

public class SimpleMessage<T>
extends java.lang.Object
implements Message<T>


Constructor Summary
SimpleMessage(java.lang.String type, T body)
           
 
Method Summary
 T getBody()
           
 java.lang.String getProperty(java.lang.String arg0)
           
 java.lang.String getType()
           
 void putProperty(java.lang.String arg0, java.lang.String arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMessage

public SimpleMessage(java.lang.String type,
                     T body)
Method Detail

getBody

public T getBody()
Specified by:
getBody in interface Message<T>

getProperty

public java.lang.String getProperty(java.lang.String arg0)
Specified by:
getProperty in interface Message<T>

getType

public java.lang.String getType()
Specified by:
getType in interface Message<T>

putProperty

public void putProperty(java.lang.String arg0,
                        java.lang.String arg1)
Specified by:
putProperty in interface Message<T>


Copyright © 2011. All Rights Reserved.