| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| NamingEnumeration<Binding> | InitialContext. listBindings(Name name) | 
| 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(String name) | 
| NamingEnumeration<Binding> | Context. listBindings(String name)Enumerates the names bound in the named context, along with the
 objects bound to them. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SearchResultThis class represents an item in the NamingEnumeration returned as a
 result of the DirContext.search() methods. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Binding | NamingEvent. newBindingContains information about the object after the change. | 
| protected Binding | NamingEvent. oldBindingContains information about the object before the change. | 
| 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. | 
| 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.