O'Reilly logo

Java Enterprise in a Nutshell, Second Edition by David Flanagan, Jim Farley, William Crawford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required