< prev index next >

src/java.naming/share/classes/javax/naming/directory/InitialDirContext.java

Print this page

        

*** 47,64 **** /** * Constructs an initial DirContext with the option of not * initializing it. This may be used by a constructor in * a subclass when the value of the environment parameter ! * is not yet known at the time the <tt>InitialDirContext</tt> * constructor is called. The subclass's constructor will * call this constructor, compute the value of the environment, ! * and then call <tt>init()</tt> before returning. * * @param lazy * true means do not initialize the initial DirContext; false ! * is equivalent to calling <tt>new InitialDirContext()</tt> * @throws NamingException if a naming exception is encountered * * @see InitialContext#init(Hashtable) * @since 1.3 */ --- 47,64 ---- /** * Constructs an initial DirContext with the option of not * initializing it. This may be used by a constructor in * a subclass when the value of the environment parameter ! * is not yet known at the time the {@code InitialDirContext} * constructor is called. The subclass's constructor will * call this constructor, compute the value of the environment, ! * and then call {@code init()} before returning. * * @param lazy * true means do not initialize the initial DirContext; false ! * is equivalent to calling {@code new InitialDirContext()} * @throws NamingException if a naming exception is encountered * * @see InitialContext#init(Hashtable) * @since 1.3 */
*** 67,77 **** } /** * Constructs an initial DirContext. * No environment properties are supplied. ! * Equivalent to <tt>new InitialDirContext(null)</tt>. * * @throws NamingException if a naming exception is encountered * * @see #InitialDirContext(Hashtable) */ --- 67,77 ---- } /** * Constructs an initial DirContext. * No environment properties are supplied. ! * Equivalent to {@code new InitialDirContext(null)}. * * @throws NamingException if a naming exception is encountered * * @see #InitialDirContext(Hashtable) */
*** 80,95 **** } /** * Constructs an initial DirContext using the supplied environment. * Environment properties are discussed in the ! * <tt>javax.naming.InitialContext</tt> class description. * ! * <p> This constructor will not modify <tt>environment</tt> * or save a reference to it, but may save a clone. * Caller should not modify mutable keys and values in ! * <tt>environment</tt> after it has been passed to the constructor. * * @param environment * environment used to create the initial DirContext. * Null indicates an empty environment. * --- 80,95 ---- } /** * Constructs an initial DirContext using the supplied environment. * Environment properties are discussed in the ! * {@code javax.naming.InitialContext} class description. * ! * <p> This constructor will not modify {@code environment} * or save a reference to it, but may save a clone. * Caller should not modify mutable keys and values in ! * {@code environment} after it has been passed to the constructor. * * @param environment * environment used to create the initial DirContext. * Null indicates an empty environment. *
< prev index next >