com.evelopers.unimod.debug.protocol
Class JavaSpecificMessageCoder

java.lang.Object
  extended bycom.evelopers.unimod.debug.protocol.JavaSpecificMessageCoder
All Implemented Interfaces:
MessageCoder

public class JavaSpecificMessageCoder
extends java.lang.Object
implements MessageCoder

Uses java serialization to save objects into Strings. Use it only for debugging and monitoring of Java applications.


Nested Class Summary
static interface JavaSpecificMessageCoder.NotSerializableObjectHandler
           
static class JavaSpecificMessageCoder.NotSerializableObjectHandlerImpl
           
static class JavaSpecificMessageCoder.StateMachineContextImpl1
           
 
Constructor Summary
JavaSpecificMessageCoder()
           
 
Method Summary
protected  void clearContext(EventMessage ms)
           
protected  void clearEventParameters(EventMessage ms)
           
 Message decode(java.io.InputStream is)
           
 void encode(Message m, java.io.OutputStream os)
           
protected  void makeSerializable(EventMessage ms)
           
protected  Event makeSerializableCopy(Event e)
           
protected  void makeSerializableCopy(StateMachineContext.Context oldCtx, StateMachineContext.Context newCtx)
          Replace all not serializable objects with it's serializable handles
protected  StateMachineContext makeSerializableCopy(StateMachineContext c)
           
protected  java.lang.Exception writeEventMessage(EventMessage m, java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSpecificMessageCoder

public JavaSpecificMessageCoder()
Method Detail

decode

public Message decode(java.io.InputStream is)
               throws MessageCoderException
Specified by:
decode in interface MessageCoder
Throws:
MessageCoderException

encode

public void encode(Message m,
                   java.io.OutputStream os)
            throws MessageCoderException
Specified by:
encode in interface MessageCoder
Throws:
MessageCoderException

writeEventMessage

protected java.lang.Exception writeEventMessage(EventMessage m,
                                                java.io.OutputStream os)
                                         throws java.io.IOException
Throws:
java.io.IOException

makeSerializable

protected void makeSerializable(EventMessage ms)

clearContext

protected void clearContext(EventMessage ms)

clearEventParameters

protected void clearEventParameters(EventMessage ms)

makeSerializableCopy

protected Event makeSerializableCopy(Event e)

makeSerializableCopy

protected StateMachineContext makeSerializableCopy(StateMachineContext c)

makeSerializableCopy

protected void makeSerializableCopy(StateMachineContext.Context oldCtx,
                                    StateMachineContext.Context newCtx)
Replace all not serializable objects with it's serializable handles