com.caucho.naming
Class EnvironmentModel

java.lang.Object
  extended by com.caucho.naming.AbstractModel
      extended by com.caucho.naming.EnvironmentModel

public class EnvironmentModel
extends AbstractModel

Environment based model for JNDI.


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 EnvironmentModel.
 AbstractModel createSubcontext(java.lang.String name)
          Creates a subcontext.
protected  void fillList(java.util.ArrayList values)
           
 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.
 java.lang.String toString()
           
 void unbind(java.lang.String name)
          Unbinds an object as a child to the model.
 
Methods inherited from class com.caucho.naming.AbstractModel
copy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

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

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

rename

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

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

list

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

Overrides:
list in class AbstractModel

fillList

protected void fillList(java.util.ArrayList values)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object