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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.