org.objectweb.carol.jndi.spi
Class JRMPLocalContext

java.lang.Object
  extended byorg.objectweb.carol.jndi.spi.AbsContext
      extended byorg.objectweb.carol.jndi.spi.JRMPContext
          extended byorg.objectweb.carol.jndi.spi.JRMPLocalContext
All Implemented Interfaces:
javax.naming.Context

public class JRMPLocalContext
extends JRMPContext
implements javax.naming.Context

Use the wrapper on registry object defined by RegistryWrapperContext class. This class has been refactored to split :

Author:
Florent Benoit

Nested Class Summary
 
Nested classes inherited from class org.objectweb.carol.jndi.spi.AbsContext
AbsContext.WrappedEnumeration
 
Field Summary
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
JRMPLocalContext(javax.naming.Context jrmpLocalContext)
          Constructs an JRMP local Wrapper context
 
Method Summary
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
 
Methods inherited from class org.objectweb.carol.jndi.spi.JRMPContext
getObjectPort, wrapObject
 
Methods inherited from class org.objectweb.carol.jndi.spi.AbsContext
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Context
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
 

Constructor Detail

JRMPLocalContext

public JRMPLocalContext(javax.naming.Context jrmpLocalContext)
                 throws javax.naming.NamingException
Constructs an JRMP local Wrapper context

Parameters:
jrmpLocalContext - the inital Local JRMP context
Throws:
javax.naming.NamingException - if the registry wrapper cannot be build
Method Detail

unwrapObject

protected java.lang.Object unwrapObject(java.lang.Object o,
                                        javax.naming.Name name)
                                 throws javax.naming.NamingException
If this object is a reference wrapper return the reference If this object is a resource wrapper return the resource

Overrides:
unwrapObject in class JRMPContext
Parameters:
o - the object to resolve
name - name of the object to unwrap
Returns:
the unwrapped object
Throws:
javax.naming.NamingException - if the object cannot be unwraped