All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.naming.Binding

java.lang.Object
   |
   +----java.naming.NameClassPair
           |
           +----java.naming.Binding

public class Binding
extends NameClassPair
A context consists of name-to-object bindings. The Binding class represents such a binding. It consists of an atomic name and an object. Use subclassing for naming systems that generate contents of a binding dynamically.


Variable Index

 o boundObj

Constructor Index

 o Binding(String, Object)
Constructs an instance of a Binding given its atomic name and object.

Method Index

 o getClassName()
Retrieves the class name of the object bound to the name of this binding.
 o getObject()
Retrieves the object bound to the name of this binding.

Variables

 o boundObj
 protected Object boundObj

Constructors

 o Binding
 public Binding(String name,
                Object obj)
Constructs an instance of a Binding given its atomic name and object.

Parameters:
name - The atomic name of the object.
obj - The object bound to name.

Methods

 o getClassName
 public String getClassName()
Retrieves the class name of the object bound to the name of this binding.

Returns:
The class name of object bound.
Overrides:
getClassName in class NameClassPair
 o getObject
 public Object getObject()
Retrieves the object bound to the name of this binding.

Returns:
The object bound.

All Packages  Class Hierarchy  This Package  Previous  Next  Index