public class JacORBIIOPContext extends AbsContext implements javax.naming.Context
AbsContext.WrappedEnumeration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SAS_COMPONENT
Object to use (specific POA) when using csiv2
|
Constructor and Description |
---|
JacORBIIOPContext(javax.naming.Context iiopCtx)
Constructs an IIOP Wrapper context for JacORB
|
Modifier and Type | Method and Description |
---|---|
void |
bind(javax.naming.Name name,
java.lang.Object obj)
Binds a name to an object.
|
static org.omg.PortableServer.POA |
getRootPOA() |
java.lang.Object |
lookup(java.lang.String name)
Retrieves the named object.
|
void |
rebind(javax.naming.Name name,
java.lang.Object obj)
Binds a name to an object, overwriting any existing binding.
|
protected java.lang.Object |
unwrapObject(java.lang.Object o,
javax.naming.Name name)
If this object is a reference wrapper return the reference If this object
is a resource wrapper return the resource
|
protected java.lang.Object |
wrapObject(java.lang.Object o,
javax.naming.Name name,
boolean replace)
Wrap an Object : If the object is a reference wrap it into a Reference
Wrapper Object here the good way is to contact the carol configuration to
get the portable remote object
|
addToEnvironment, addToExported, bind, close, composeName, composeName, createSubcontext, createSubcontext, decode, defaultUnwrapObject, destroySubcontext, destroySubcontext, encode, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getObjectPort, getWrappedContext, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, removeFromEnvironment, rename, rename, unbind, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToEnvironment, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, removeFromEnvironment, rename, rename, unbind, unbind
public static final java.lang.String SAS_COMPONENT
public JacORBIIOPContext(javax.naming.Context iiopCtx) throws javax.naming.NamingException
iiopCtx
- the inital IIOP contextjavax.naming.NamingException
- if POA cannot be activatedpublic static org.omg.PortableServer.POA getRootPOA()
protected java.lang.Object unwrapObject(java.lang.Object o, javax.naming.Name name) throws javax.naming.NamingException
unwrapObject
in class AbsContext
o
- the object to resolvename
- name of the object to unwrapjavax.naming.NamingException
- if the object cannot be unwrapedprotected java.lang.Object wrapObject(java.lang.Object o, javax.naming.Name name, boolean replace) throws javax.naming.NamingException
wrapObject
in class AbsContext
o
- the object to encodename
- of the objectreplace
- if the object need to be replacedRemote JNDIRemoteReference Object
if o is a
resource o if elsejavax.naming.NamingException
- if object cannot be wrappedpublic java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
lookup
in class AbsContext
name
- the name of the object to look upjavax.naming.NamingException
- if a naming exception is encounteredpublic void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
bind
in class AbsContext
name
- the name to bind; may not be emptyobj
- the object to bind; possibly nulljavax.naming.NamingException
- if a naming exception is encounteredpublic void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
rebind
in class AbsContext
name
- the name to bind; may not be emptyobj
- the object to bind; possibly nulljavax.naming.NamingException
- if a naming exception is encountered