org.objectweb.fractal.rmi.io
Class RmiMarshallerFactory

java.lang.Object
  extended by org.objectweb.fractal.rmi.io.RmiMarshallerFactory
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, MarshallerFactory

public class RmiMarshallerFactory
extends java.lang.Object
implements MarshallerFactory, org.objectweb.fractal.api.control.BindingController

Provides a factory for creating marshallers and unmarshallers.


Field Summary
protected  ChunkFactory chunkFactory
          The chunk factory to be used by the (un)marshallers created by this factory.
protected  ContextFactory contextFactory
          The context factory to be used by the (un)marshallers created by this factory.
protected  NamingContext domain
          The domain to be used by the (un)marshallers created by this factory.
 
Constructor Summary
RmiMarshallerFactory()
          Constructs a new RmiMarshallerFactory.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 Marshaller newMarshaller()
          Returns a new marshaller.
 UnMarshaller newUnMarshaller(Chunk chunk, int read)
          Returns a new unmarshaller, using the provided chunk(s) as a data source.
 UnMarshaller newUnMarshaller(ChunkProvider message)
          Returns a new unmarshaller, using the provided chunk provider as a data source.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected NamingContext domain
The domain to be used by the (un)marshallers created by this factory.


chunkFactory

protected ChunkFactory chunkFactory
The chunk factory to be used by the (un)marshallers created by this factory.


contextFactory

protected ContextFactory contextFactory
The context factory to be used by the (un)marshallers created by this factory.

Constructor Detail

RmiMarshallerFactory

public RmiMarshallerFactory()
Constructs a new RmiMarshallerFactory.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

newMarshaller

public Marshaller newMarshaller()
Returns a new marshaller.

Specified by:
newMarshaller in interface MarshallerFactory
Returns:
a new marshaller.

newUnMarshaller

public UnMarshaller newUnMarshaller(ChunkProvider message)
Description copied from interface: MarshallerFactory
Returns a new unmarshaller, using the provided chunk provider as a data source.

Specified by:
newUnMarshaller in interface MarshallerFactory
Parameters:
message - a chunk provider.
Returns:
a new unmarshaller.

newUnMarshaller

public UnMarshaller newUnMarshaller(Chunk chunk,
                                    int read)
Returns a new unmarshaller, using the provided chunk(s) as a data source. The read parameter is used to initialize the number of bytes read from the message.

Specified by:
newUnMarshaller in interface MarshallerFactory
Parameters:
chunk - a (chain of) chunk(s).
read - the number of bytes already read from the message.
Returns:
an unmarshaller.


Copyright © 2008 OW2 Consortium. All Rights Reserved.