Name
Context
Synopsis
This interface represents an object in a naming system. A Context
keeps track of a set of name-to-object bindings for its subordinates
in the naming system, so it defines methods to examine and update
these bindings. The lookup()
method looks up a subordinate object,
while list()
and listBindings()
provide access to all of the
subordinates.
A Context
only knows about its subordinates, not about itself or what
is above it in the naming system. Thus, there are no methods to get
the name of a Context
or move up in the naming hierarchy.
public interface Context { // Public Constants public static final String APPLET; // ="java.naming.applet” public static final String AUTHORITATIVE; // ="java.naming.authoritative” public static final String BATCHSIZE; // ="java.naming.batchsize” public static final String DNS_URL; // ="java.naming.dns.url” public static final String INITIAL_CONTEXT_FACTORY; // ="java.naming.factory.initial” public static final String LANGUAGE; // ="java.naming.language” public static final String OBJECT_FACTORIES; // ="java.naming.factory.object” public static final String PROVIDER_URL; // ="java.naming.provider.url” public static final String REFERRAL; // ="java.naming.referral” public static final String SECURITY_AUTHENTICATION; // ="java.naming.security.authentication” public static final String SECURITY_CREDENTIALS; // ="java.naming.security.credentials” public static final String SECURITY_PRINCIPAL; // ="java.naming.security.principal” public ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.