com.anabas.gxo
Interface GND_Collection

All Known Implementing Classes:
GND_CollectionImpl

public interface GND_Collection
extends Context

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


Method Summary
 void addCollectionListener(GND_CollectionListener l)
           
 void bindXO(java.lang.String name, java.lang.Object obj)
          Binds another stream context or stream under this context.
 GND_Collection createChildCollection(java.lang.String name)
          Convenience function for DirContext.createSubcontext(); Creates a new sub context within the larger stream context.
 java.lang.Object lookupXO(java.lang.String name)
          Lookup a object in this stream context.
 void removeCollectionListener(GND_CollectionListener l)
           
 
Methods inherited from interface com.anabas.naming.Context
bind, close, createSubcontext, destroySubcontext, list, lookup, rebind
 

Method Detail

removeCollectionListener

public void removeCollectionListener(GND_CollectionListener l)

addCollectionListener

public void addCollectionListener(GND_CollectionListener l)
                           throws GXO_AccessDeniedException

createChildCollection

public GND_Collection createChildCollection(java.lang.String name)
                                     throws GXO_AccessDeniedException,
                                            NamingException
Convenience function for DirContext.createSubcontext(); Creates a new sub context within the larger stream context. Each context can contain other sub contexts or streams (leaf nodes)

bindXO

public void bindXO(java.lang.String name,
                   java.lang.Object obj)
            throws GXO_AccessDeniedException,
                   GXO_IllegalObjectException,
                   NamingException
Binds another stream context or stream under this context. Or potentially other types of objects. Equivalent to JNDI Context.bind
Throws:
AccessDeniedException - if app does not have permission to bind.
IllegalObjectException - if object being bound is not a stream or streamcontext.

lookupXO

public java.lang.Object lookupXO(java.lang.String name)
                          throws GXO_AccessDeniedException,
                                 NamingException
Lookup a object in this stream context. Equivalent to JNDI Context.lookup
Returns:
Either GND_Collection or Stream or null if nothing found.