org.objectweb.dream.serializator
Class SerializatorImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.serializator.SerializatorImpl
- All Implemented Interfaces:
- ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, RecyclableFactory, Serializator, BindingController, LifeCycleController
public class SerializatorImpl
- extends AbstractComponent
- implements Serializator, RecyclableFactory
Basic implementation of the
Serializator
interface.
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 |
messageCodecItf
protected MessageCodec messageCodecItf
objectPoolItf
protected ObjectPool objectPoolItf
SerializatorImpl
public SerializatorImpl()
serialize
public byte[] serialize(Message message)
throws IOException
- Description copied from interface:
Serializator
- Serializes the given message and returns a byte array representation of the
message.
- Specified by:
serialize
in interface Serializator
- Parameters:
message
- the message to be serialized.
- Returns:
- a byte array representation of the message.
- Throws:
IOException
- if an exception occurs while serializing the message.- See Also:
Serializator.serialize(Message)
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.