com.caucho.naming
Class AbstractModel

java.lang.Object
  extended by com.caucho.naming.AbstractModel
Direct Known Subclasses:
BurlapModel, EnvironmentModel, HessianModel, HessianModel, HessianModel, MBeanModel, MemoryModel

public abstract class AbstractModel
extends java.lang.Object

Abstract data model behind Resin's JNDI.


Constructor Summary
AbstractModel()
           
 
Method Summary
 void bind(java.lang.String name, java.lang.Object obj)
          Binds an object as a child to the model.
 AbstractModel copy()
          This is a deep copy.
protected  AbstractModel create()
           
 AbstractModel createSubcontext(java.lang.String name)
          Creates a subcontext for the model.
 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 rename(java.lang.String newName)
          Renames a child.
 void unbind(java.lang.String name)
          Unbinds an object as a child to the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModel

public AbstractModel()
Method Detail

create

protected AbstractModel create()

copy

public AbstractModel copy()
                   throws javax.naming.NamingException
This is a deep copy.

Returns:
a deep copy of the context
Throws:
javax.naming.NamingException

lookup

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

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
Binds an object as a child to the model.

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.

Throws:
javax.naming.NamingException

createSubcontext

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

Throws:
javax.naming.NamingException

rename

public void rename(java.lang.String newName)
            throws javax.naming.NamingException
Renames a child.

Throws:
javax.naming.NamingException

list

public java.util.List list()
                    throws javax.naming.NamingException
Lists the child names.

Throws:
javax.naming.NamingException