Module java.naming
Package javax.naming

Class Binding

java.lang.Object
javax.naming.NameClassPair
javax.naming.Binding
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SearchResult

public class Binding extends NameClassPair
This class represents a name-to-object binding found in a context.

A context consists of name-to-object bindings. The Binding class represents such a binding. It consists of a name and an object. The Context.listBindings() method returns an enumeration of Binding.

Use subclassing for naming systems that generate contents of a binding dynamically.

A Binding instance is not synchronized against concurrent access by multiple threads. Threads that need to access a Binding concurrently should synchronize amongst themselves and provide the necessary locking.

Since:
1.3
See Also: