org.objectweb.david.libs.binding.orbs.iiop
Class IIOPORBFactory

java.lang.Object
  |
  +--org.objectweb.jonathan.libs.kernel.GenericFactory
        |
        +--org.objectweb.david.libs.binding.orbs.iiop.IIOPORBFactory
All Implemented Interfaces:
Factory

public class IIOPORBFactory
extends GenericFactory

IIOPORB Factory implementation.


Constructor Summary
IIOPORBFactory()
           
 
Method Summary
protected  void configure(Object _object, Context _c, Object[] _used_components)
           
protected  Object[] getUsedComponents(Context _c)
          Returns the components required to create a new IIOPORB instance.
protected  Object newInstance()
           
protected  Object newInstance(Context _c, Object[] _used_components)
          Returns a new IIOPORB instance created using the provided components.
 
Methods inherited from class org.objectweb.jonathan.libs.kernel.GenericFactory
newObject, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIOPORBFactory

public IIOPORBFactory()
Method Detail

getUsedComponents

protected final Object[] getUsedComponents(Context _c)
Returns the components required to create a new IIOPORB instance.

The provided context must contain a (non null) component of name "ChunkFactory", of type ChunkFactory.

It must also contain a component of name "domain", of type NamingContext; it must be a valid domain.

It must also contain a component of name "ContextFactory", of type ContextFactory.

It must also contain a component of name "binder_context", of type Context.

It may contain a component of name "ServicesHandler", of type ServicesHandler.

It may also contain a component of name "use_java_serialization" of type Boolean. If true, it means that the references of servers exported to the constructed ORB will contain an additional information letting clients use java serialization instead of GIOP serialization; On the client side, server references will be checked for the presence of that information, and if present, java serialization will be used. If false, the references of exported servers won't contain the additional information, and a client will never use java serialization to interact with a server, even if the server's reference contains the appropriate information. The default is not to use java serialization, but note that using it has no impact on interoperability.

Servers are informed that java serialization should be used thanks to the java serialization service.

Overrides:
getUsedComponents in class GenericFactory
Parameters:
_c - a Context instance;
Returns:
the components needed to create an IIOPORB instance.

newInstance

protected final Object newInstance(Context _c,
                                   Object[] _used_components)
                            throws JonathanException
Returns a new IIOPORB instance created using the provided components.
Overrides:
newInstance in class GenericFactory
Parameters:
_c - a context;
_used_components - components to be used to create a new IIOPORB instance;
Returns:
a new IIOPORB instance;
Throws:
JonathanException - if something goes wrong.

newInstance

protected Object newInstance()
                      throws JonathanException
Overrides:
newInstance in class GenericFactory

configure

protected void configure(Object _object,
                         Context _c,
                         Object[] _used_components)
                  throws JonathanException
Overrides:
configure in class GenericFactory