com.caucho.naming.hessian
Class HessianContextImpl

java.lang.Object
  extended by com.caucho.naming.ContextImpl
      extended by com.caucho.naming.hessian.HessianContextImpl
All Implemented Interfaces:
javax.naming.Context

public class HessianContextImpl
extends ContextImpl

Hessian implementation of the JNDI Context. The actual storage of the persistent data is in the AbstractModel.


Field Summary
protected static java.util.logging.Logger dbg
           
protected static L10N L
           
 
Fields inherited from class com.caucho.naming.ContextImpl
_env, _model, _name, log
 
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
HessianContextImpl(AbstractModel model, java.util.Hashtable env)
          Creates a ContextImpl.
HessianContextImpl(java.lang.String name, AbstractModel model, java.util.Hashtable env)
          Creates a ContextImpl.
 
Method Summary
protected  ContextImpl create(java.lang.String name, AbstractModel model, java.util.Hashtable env)
          Creates a new instance of the ContextImpl.
protected  java.lang.String parseFirst(java.lang.String name)
          Parses the head of the name.
protected  java.lang.String parseRest(java.lang.String name)
          Parses the tail of the name.
 java.lang.String toString()
          Returns a string value.
 
Methods inherited from class com.caucho.naming.ContextImpl
addToEnvironment, bind, bind, close, composeName, composeName, create, createSingleSubcontext, createSubcontext, createSubcontext, destroySingleSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getFullPath, getFullPath, getModel, getName, getNameInNamespace, getNameParser, getNameParser, getSeparator, getSeparatorString, list, list, listBindings, listBindings, listSingle, lookup, lookup, lookupImpl, lookupLink, lookupLink, lookupSingle, rebind, rebind, rebindSingle, removeFromEnvironment, rename, rename, unbind, unbind, unbindSingle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbg

protected static final java.util.logging.Logger dbg

L

protected static final L10N L
Constructor Detail

HessianContextImpl

public HessianContextImpl(AbstractModel model,
                          java.util.Hashtable env)
Creates a ContextImpl.

Parameters:
model - The underlying storage node.
env - The client's JNDI environment.

HessianContextImpl

public HessianContextImpl(java.lang.String name,
                          AbstractModel model,
                          java.util.Hashtable env)
Creates a ContextImpl.

Parameters:
name - JNDI name, used for error messages, etc.
model - The underlying storage node.
env - The client's JNDI environment.
Method Detail

create

protected ContextImpl create(java.lang.String name,
                             AbstractModel model,
                             java.util.Hashtable env)
Creates a new instance of the ContextImpl. Subclasses will override this method to return a new instance of the subclass.

Overrides:
create in class ContextImpl
Parameters:
name - the JNDI name for the new context
model - the underlying storage node
env - the client's JNDI environment.
Returns:
a new instance of the implementing class.

parseFirst

protected java.lang.String parseFirst(java.lang.String name)
                               throws javax.naming.NamingException
Parses the head of the name.

Overrides:
parseFirst in class ContextImpl
Throws:
javax.naming.NamingException

parseRest

protected java.lang.String parseRest(java.lang.String name)
                              throws javax.naming.NamingException
Parses the tail of the name.

Overrides:
parseRest in class ContextImpl
Throws:
javax.naming.NamingException

toString

public java.lang.String toString()
Returns a string value.

Overrides:
toString in class ContextImpl