public Collection < ? extends NameClassPair > listInstances ( NamingConstants . JavaColonNamespace namespace , String contextName ) throws NamingException { if ( namespace == NamingConstants . JavaColonNamespace . COMP ) { return listInstances ( compLock , compBindings , contextName ) ; } if ( namespace == NamingConstants . JavaColonNamespace . COMP_ENV ) { return listInstances ( compLock , compEnvBindings , contextName ) ; } if ( namespace == this . namespace ) { return listInstances ( nonCompEnvLock , nonCompBindings , contextName ) ; } return Collections . emptyList ( ) ; }
Lists the contents of a JNDI subcontext .