com.caucho.servlets.naming
Class HessianModel

java.lang.Object
  extended by com.caucho.naming.AbstractModel
      extended by com.caucho.servlets.naming.HessianModel

public class HessianModel
extends AbstractModel

Hessian based model for JNDI.


Constructor Summary
HessianModel(NamingProxy proxy)
          Creates a new instance of the hessian model.
 
Method Summary
 void bind(java.lang.String name, java.lang.Object obj)
          Rebinds an object as a child to the model.
protected  AbstractModel create()
          Creates a new instance of HessianModel.
 AbstractModel createSubcontext(java.lang.String name)
          Creates a subcontext.
 java.util.List list()
          Lists the child names.
 java.lang.Object lookup(java.lang.String name)
          Returns the object from looking up a single link.
 void unbind(java.lang.String name)
          Unbinds an object as a child to the model.
 
Methods inherited from class com.caucho.naming.AbstractModel
copy, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianModel

public HessianModel(NamingProxy proxy)
Creates a new instance of the hessian model.

Method Detail

create

protected AbstractModel create()
Creates a new instance of HessianModel.

Overrides:
create in class AbstractModel

lookup

public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException
Returns the object from looking up a single link.

Overrides:
lookup in class AbstractModel
Parameters:
name - the name segment.
Returns:
the object stored in the map.
Throws:
javax.naming.NamingException

bind

public void bind(java.lang.String name,
                 java.lang.Object obj)
          throws javax.naming.NamingException
Rebinds an object as a child to the model.

Overrides:
bind in class AbstractModel
Throws:
javax.naming.NamingException

unbind

public void unbind(java.lang.String name)
            throws javax.naming.NamingException
Unbinds an object as a child to the model.

Overrides:
unbind in class AbstractModel
Throws:
javax.naming.NamingException

createSubcontext

public AbstractModel createSubcontext(java.lang.String name)
                               throws javax.naming.NamingException
Creates a subcontext.

Overrides:
createSubcontext in class AbstractModel
Throws:
javax.naming.NamingException

list

public java.util.List list()
Lists the child names.

Overrides:
list in class AbstractModel