org.objectweb.dream.message.codec
Class MessageCreatorBasicImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.message.codec.MessageCreatorBasicImpl
All Implemented Interfaces:
ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, MessageCodec, BindingController, LifeCycleController

public class MessageCreatorBasicImpl
extends AbstractComponent
implements MessageCodec

Basic message codec that create empty {link Message}.


Field Summary
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.message.codec.MessageCodec
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
MessageCreatorBasicImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 Message decode(CodecInputOutput cio)
          De-serializes a message from the given stream.
 void encode(CodecInputOutput cio, Message message)
          Encodes the given message on the given stream.
 String[] listFc()
           
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCreatorBasicImpl

public MessageCreatorBasicImpl()
Method Detail

encode

public void encode(CodecInputOutput cio,
                   Message message)
            throws IOException
Description copied from interface: MessageCodec
Encodes the given message on the given stream. This method is responsible to encode the given message and its sub messages recursively.

Specified by:
encode in interface MessageCodec
Parameters:
cio - contains the input on which the message is encoded.
message - a message to serialize.
Throws:
IOException - if an error occurs during the serialization.
See Also:
MessageCodec.encode(CodecInputOutput, Message)

decode

public Message decode(CodecInputOutput cio)
               throws IOException
Description copied from interface: MessageCodec
De-serializes a message from the given stream. This method is responsible to decode the given message and its sub messages recursively.

Specified by:
decode in interface MessageCodec
Parameters:
cio - contains the output on which the message is decoded.
Returns:
a message
Throws:
IOException - if an error occurs during the de-serialization.
See Also:
MessageCodec.decode(CodecInputOutput)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Overrides:
bindFc in class AbstractComponent
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.