com.anabas.ibus
Class GND_CollectionImpl

java.lang.Object
  |
  +--com.anabas.naming.ContextImpl
        |
        +--com.anabas.ibus.GND_CollectionImpl
Direct Known Subclasses:
GND_InitialContext

public class GND_CollectionImpl
extends ContextImpl
implements GND_Collection

Title: Description: Copyright: Copyright (c) 2000 Company:


Constructor Summary
protected GND_CollectionImpl(java.lang.String parentName, java.lang.String myName, java.util.Hashtable tree, ContextManager cm)
           
 
Method Summary
 void addCollectionListener(GND_CollectionListener l)
           
 void bindXO(java.lang.String name, java.lang.Object obj)
          Binds another stream or stream context directly under this context.
 GND_Collection createChildCollection(java.lang.String name)
          Use the createSubcontext() method instead.
 Context createSubcontext(java.lang.String name)
          Override the dfeault createSubcontext to create a StreamContextImpl rather than a ContextImpl.
 java.lang.Object lookupXO(java.lang.String name)
          Equivalent to Context.lookup(name)
 void removeCollectionListener(GND_CollectionListener l)
           
 
Methods inherited from class com.anabas.naming.ContextImpl
bind, close, createSubcontext, destroySubcontext, getAbsoluteName, getTree, list, lookup, rebind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GND_CollectionImpl

protected GND_CollectionImpl(java.lang.String parentName,
                             java.lang.String myName,
                             java.util.Hashtable tree,
                             ContextManager cm)
Method Detail

createChildCollection

public GND_Collection createChildCollection(java.lang.String name)
                                     throws GXO_AccessDeniedException,
                                            NamingException
Use the createSubcontext() method instead.
Specified by:
createChildCollection in interface GND_Collection

createSubcontext

public Context createSubcontext(java.lang.String name)
                         throws NamingException
Override the dfeault createSubcontext to create a StreamContextImpl rather than a ContextImpl.
Overrides:
createSubcontext in class ContextImpl
Tags copied from class: ContextImpl
Parameters:
name - A valid directory name that does not begin with a '/'. i.e. a/b/c or a/b/c/
Throws:
NamingException -  

lookupXO

public java.lang.Object lookupXO(java.lang.String name)
                          throws GXO_AccessDeniedException,
                                 NamingException
Equivalent to Context.lookup(name)
Specified by:
lookupXO in interface GND_Collection
Tags copied from interface: GND_Collection
Returns:
Either GND_Collection or Stream or null if nothing found.

bindXO

public void bindXO(java.lang.String name,
                   java.lang.Object obj)
            throws GXO_AccessDeniedException,
                   GXO_IllegalObjectException,
                   NamingException
Binds another stream or stream context directly under this context.
Specified by:
bindXO in interface GND_Collection
Tags copied from interface: GND_Collection
Throws:
AccessDeniedException - if app does not have permission to bind.
IllegalObjectException - if object being bound is not a stream or streamcontext.

addCollectionListener

public void addCollectionListener(GND_CollectionListener l)
                           throws GXO_AccessDeniedException
Specified by:
addCollectionListener in interface GND_Collection

removeCollectionListener

public void removeCollectionListener(GND_CollectionListener l)
Specified by:
removeCollectionListener in interface GND_Collection