org.objectweb.dream.serializator
Class DeSerializatorImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.serializator.DeSerializatorImpl
All Implemented Interfaces:
ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, RecyclableFactory, DeSerializator, BindingController, LifeCycleController

public class DeSerializatorImpl
extends AbstractComponent
implements DeSerializator, RecyclableFactory

Basic implementation of the DeSerializatorinterface.


Field Summary
protected  MessageCodec messageCodecItf
           
protected  ObjectPool objectPoolItf
           
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.serializator.DeSerializator
ITF_NAME
 
Fields inherited from interface org.objectweb.dream.pool.RecyclableFactory
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
DeSerializatorImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 Message deserialize(byte[] byteArray)
          Deserializes the given byte array and returns a message.
 String[] listFc()
           
 Recyclable newInstance()
           
 
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
 

Field Detail

messageCodecItf

protected MessageCodec messageCodecItf

objectPoolItf

protected ObjectPool objectPoolItf
Constructor Detail

DeSerializatorImpl

public DeSerializatorImpl()
Method Detail

deserialize

public Message deserialize(byte[] byteArray)
                    throws IOException
Description copied from interface: DeSerializator
Deserializes the given byte array and returns a message.

Specified by:
deserialize in interface DeSerializator
Parameters:
byteArray - the byte array to be deserialized.
Returns:
a message.
Throws:
IOException - if an exception occurs while serializing the message.
See Also:
DeSerializator.deserialize(byte[])

newInstance

public Recyclable newInstance()
Specified by:
newInstance in interface RecyclableFactory
See Also:
RecyclableFactory.newInstance()

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)

listFc

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


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