public class IRMIContext extends AbsContext implements javax.naming.Context
AbsContext.WrappedEnumeration
Constructor and Description |
---|
IRMIContext(javax.naming.Context context)
Constructs a IRMI Wrapper context
|
Modifier and Type | Method and Description |
---|---|
protected int |
getObjectPort()
Get the object port to use (0 by default, declare this method in a subclass if you want to change value)
|
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, bind, close, composeName, composeName, createSubcontext, createSubcontext, decode, defaultUnwrapObject, destroySubcontext, destroySubcontext, encode, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getWrappedContext, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
public IRMIContext(javax.naming.Context context)
context
- the inital contextprotected int getObjectPort()
AbsContext
getObjectPort
in class AbsContext
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 wrapped