public NamingEnumeration listBindings ( String name ) throws NamingException { if ( "" . equals ( name ) ) { // listing this context return new FlatBindings ( bindings . keys ( ) ) ; } // Perhaps `name' names a context Object target = lookup ( name ) ; if ( target instanceof Context ) { return ( ( Context ) target ) . listBindings ( "" ) ; } throw new NotContextException ( name + " cannot be listed" ) ; }
Enumerates the names bound in the named context along with the objects bound to them . The contents of any subcontexts are not included .