org.objectweb.carol.jndi.spi
Class JacORBIIOPContextWrapperFactory

java.lang.Object
  extended byorg.objectweb.carol.jndi.spi.AbsInitialContextFactory
      extended byorg.objectweb.carol.jndi.spi.JacORBIIOPContextWrapperFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class JacORBIIOPContextWrapperFactory
extends AbsInitialContextFactory
implements javax.naming.spi.InitialContextFactory

Class JacORBIIOPContextWrapperFactory is the CAROL JNDI Context factory for JacORB. This context factory build the iiop context for reference wrapping to/from a remote object

Author:
Florent BENOIT
See Also:
InitialContextFactory

Field Summary
static java.lang.String SAS_COMPONENT
          Object to use (specific POA) when using csiv2
 
Constructor Summary
JacORBIIOPContextWrapperFactory()
           
 
Method Summary
protected  void addExtraConfInEnvironment(java.util.Hashtable environment)
          Store orb in the environment
protected  java.lang.String getKey(java.util.Hashtable environment)
           
protected  java.lang.Class getWrapperClass()
           
protected  void init()
          For some protocols, there are some initialization stuff to do
 
Methods inherited from class org.objectweb.carol.jndi.spi.AbsInitialContextFactory
getClassArgs, getClassConstructor, getInitialContext, getReferencingFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.spi.InitialContextFactory
getInitialContext
 

Field Detail

SAS_COMPONENT

public static final java.lang.String SAS_COMPONENT
Object to use (specific POA) when using csiv2

See Also:
Constant Field Values
Constructor Detail

JacORBIIOPContextWrapperFactory

public JacORBIIOPContextWrapperFactory()
Method Detail

getWrapperClass

protected java.lang.Class getWrapperClass()
Specified by:
getWrapperClass in class AbsInitialContextFactory
Returns:
class of the wrapper (to be instantiated + pool).

addExtraConfInEnvironment

protected void addExtraConfInEnvironment(java.util.Hashtable environment)
Store orb in the environment

Overrides:
addExtraConfInEnvironment in class AbsInitialContextFactory
Parameters:
environment - hashtable containing the environment

init

protected void init()
             throws javax.naming.NamingException
For some protocols, there are some initialization stuff to do

Overrides:
init in class AbsInitialContextFactory
Throws:
javax.naming.NamingException - if there is an exception

getKey

protected java.lang.String getKey(java.util.Hashtable environment)
Overrides:
getKey in class AbsInitialContextFactory
Parameters:
environment - env to determine the key
Returns:
the key or null if we don't want to cache it