< prev index next >

src/java.naming/share/classes/javax/naming/Binding.java

Print this page

        

*** 47,69 **** public class Binding extends NameClassPair { /** * Contains this binding's object. * It is initialized by the constructor and can be updated using ! * <tt>setObject</tt>. * @serial * @see #getObject * @see #setObject */ private Object boundObj; /** * Constructs an instance of a Binding given its name and object. *<p> ! * <tt>getClassName()</tt> will return ! * the class name of <tt>obj</tt> (or null if <tt>obj</tt> is null) ! * unless the class name has been explicitly set using <tt>setClassName()</tt> * * @param name The non-null name of the object. It is relative * to the <em>target context</em> (which is * named by the first parameter of the <code>listBindings()</code> method) * @param obj The possibly null object bound to name. --- 47,69 ---- public class Binding extends NameClassPair { /** * Contains this binding's object. * It is initialized by the constructor and can be updated using ! * {@code setObject}. * @serial * @see #getObject * @see #setObject */ private Object boundObj; /** * Constructs an instance of a Binding given its name and object. *<p> ! * {@code getClassName()} will return ! * the class name of {@code obj} (or null if {@code obj} is null) ! * unless the class name has been explicitly set using {@code setClassName()} * * @param name The non-null name of the object. It is relative * to the <em>target context</em> (which is * named by the first parameter of the <code>listBindings()</code> method) * @param obj The possibly null object bound to name.
*** 76,88 **** /** * Constructs an instance of a Binding given its name, object, and whether * the name is relative. *<p> ! * <tt>getClassName()</tt> will return the class name of <tt>obj</tt> ! * (or null if <tt>obj</tt> is null) unless the class name has been ! * explicitly set using <tt>setClassName()</tt> * * @param name The non-null string name of the object. * @param obj The possibly null object bound to name. * @param isRelative true if <code>name</code> is a name relative * to the target context (which is named by --- 76,88 ---- /** * Constructs an instance of a Binding given its name, object, and whether * the name is relative. *<p> ! * {@code getClassName()} will return the class name of {@code obj} ! * (or null if {@code obj} is null) unless the class name has been ! * explicitly set using {@code setClassName()} * * @param name The non-null string name of the object. * @param obj The possibly null object bound to name. * @param isRelative true if <code>name</code> is a name relative * to the target context (which is named by
*** 102,114 **** * * @param name The non-null name of the object. It is relative * to the <em>target context</em> (which is * named by the first parameter of the <code>listBindings()</code> method) * @param className The possibly null class name of the object ! * bound to <tt>name</tt>. If null, the class name of <tt>obj</tt> is ! * returned by <tt>getClassName()</tt>. If <tt>obj</tt> is also ! * null, <tt>getClassName()</tt> will return null. * @param obj The possibly null object bound to name. * @see NameClassPair#setClassName */ public Binding(String name, String className, Object obj) { super(name, className); --- 102,114 ---- * * @param name The non-null name of the object. It is relative * to the <em>target context</em> (which is * named by the first parameter of the <code>listBindings()</code> method) * @param className The possibly null class name of the object ! * bound to {@code name}. If null, the class name of {@code obj} is ! * returned by {@code getClassName()}. If {@code obj} is also ! * null, {@code getClassName()} will return null. * @param obj The possibly null object bound to name. * @see NameClassPair#setClassName */ public Binding(String name, String className, Object obj) { super(name, className);
*** 119,131 **** * Constructs an instance of a Binding given its * name, class name, object, and whether the name is relative. * * @param name The non-null string name of the object. * @param className The possibly null class name of the object ! * bound to <tt>name</tt>. If null, the class name of <tt>obj</tt> is ! * returned by <tt>getClassName()</tt>. If <tt>obj</tt> is also ! * null, <tt>getClassName()</tt> will return null. * @param obj The possibly null object bound to name. * @param isRelative true if <code>name</code> is a name relative * to the target context (which is named by * the first parameter of the <code>listBindings()</code> method); * false if <code>name</code> is a URL string. --- 119,131 ---- * Constructs an instance of a Binding given its * name, class name, object, and whether the name is relative. * * @param name The non-null string name of the object. * @param className The possibly null class name of the object ! * bound to {@code name}. If null, the class name of {@code obj} is ! * returned by {@code getClassName()}. If {@code obj} is also ! * null, {@code getClassName()} will return null. * @param obj The possibly null object bound to name. * @param isRelative true if <code>name</code> is a name relative * to the target context (which is named by * the first parameter of the <code>listBindings()</code> method); * false if <code>name</code> is a URL string.
< prev index next >