public NamingEnumeration listBindings ( Name name ) throws NamingException { if ( _nc == null ) throw IIOPLogger . ROOT_LOGGER . notANamingContext ( name . toString ( ) ) ; if ( name . size ( ) > 0 ) { try { java . lang . Object obj = lookup ( name ) ; if ( obj instanceof CNCtx ) { return new org . wildfly . iiop . openjdk . naming . jndi . CNBindingEnumeration ( ( CNCtx ) obj , true , _env ) ; } else { throw new NotContextException ( name . toString ( ) ) ; } } catch ( NamingException ne ) { throw ne ; } catch ( BAD_PARAM e ) { NamingException ne = new NotContextException ( name . toString ( ) ) ; ne . setRootCause ( e ) ; throw ne ; } } return new org . wildfly . iiop . openjdk . naming . jndi . CNBindingEnumeration ( this , false , _env ) ; }
Returns a BindingEnumeration object which has a list of name class pairs . Lists the current context if the name is empty .