Uses of Class javax.naming.Binding (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
javax.naming.Binding

- Packages that use Binding
  Package | Description
  --- | ---
  javax.naming | Provides the classes and interfaces for accessing naming services.
  javax.naming.directory | Extends the `javax.naming` package to provide functionality for accessing directory services.
  javax.naming.event | Provides support for event notification when accessing naming and directory services.

- - ### Uses of Binding in javax.naming

    Methods in javax.naming that return types with arguments of type Binding
    Modifier and Type | Method and Description
    --- | ---
    `NamingEnumeration<Binding>` | Context.`listBindings(Name name)` Enumerates the names bound in the named context, along with the objects bound to them.
    `NamingEnumeration<Binding>` | InitialContext.`listBindings(Name name)`
    `NamingEnumeration<Binding>` | Context.`listBindings(String name)` Enumerates the names bound in the named context, along with the objects bound to them.
    `NamingEnumeration<Binding>` | InitialContext.`listBindings(String name)`

  - ### Uses of Binding in javax.naming.directory

    Subclasses of Binding in javax.naming.directory
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SearchResult` This class represents an item in the NamingEnumeration returned as a result of the DirContext.search() methods.

  - ### Uses of Binding in javax.naming.event

    Fields in javax.naming.event declared as Binding
    Modifier and Type | Field and Description
    --- | ---
    `protected Binding` | NamingEvent.`newBinding` Contains information about the object after the change.
    `protected Binding` | NamingEvent.`oldBinding` Contains information about the object before the change.

    Methods in javax.naming.event that return Binding
    Modifier and Type | Method and Description
    --- | ---
    `Binding` | NamingEvent.`getNewBinding()` Retrieves the binding of the object after the change.
    `Binding` | NamingEvent.`getOldBinding()` Retrieves the binding of the object before the change.

    Constructors in javax.naming.event with parameters of type Binding
    Constructor and Description
    `NamingEvent(EventContext source, int type, Binding newBd, Binding oldBd, Object changeInfo)` Constructs an instance of `NamingEvent`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.