public interface JavaColonNamingHelper
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObjectInstance(NamingConstants.JavaColonNamespace namespace,
java.lang.String name)
This method is called by JNDI during lookups.
|
boolean |
hasObjectWithPrefix(NamingConstants.JavaColonNamespace namespace,
java.lang.String name) |
java.util.Collection<? extends javax.naming.NameClassPair> |
listInstances(NamingConstants.JavaColonNamespace namespace,
java.lang.String nameInContext) |
java.lang.Object getObjectInstance(NamingConstants.JavaColonNamespace namespace, java.lang.String name) throws javax.naming.NamingException
namespace
- enum representing the particular java: namespace being
queried, see NamingConstants.JavaColonNamespace
name
- String form of the jndi name, excluding the namespace prefix
e.g. for the resource "java:comp/env/jdbc/test" this name
would be "jdbc/test"javax.naming.NamingException
- is thrown when an implementation knows about the the JNDI
resource, but encounters a problem obtaining an instance
to return.boolean hasObjectWithPrefix(NamingConstants.JavaColonNamespace namespace, java.lang.String name) throws javax.naming.NamingException
namespace
- enum representing the particular java: namespace being
queried, see NamingConstants.JavaColonNamespace
name
- String form of the jndi name prefix, excluding the namespace prefix
e.g. for the resource prefix "java:comp/env/jdbc" this name
would be "jdbc"javax.naming.NamingException
java.util.Collection<? extends javax.naming.NameClassPair> listInstances(NamingConstants.JavaColonNamespace namespace, java.lang.String nameInContext) throws javax.naming.NamingException
namespace
- enum representing the particular java: namespace being
queried, see NamingConstants.JavaColonNamespace
nameInContext
- String form of the jndi name, excluding the namespace prefix
e.g. for the resource "java:comp/env/jdbc/test" this name
would be "jdbc/test". "" corresponds to the namespace root,
and null is not valid.javax.naming.NamingException