## Uses of Class
org.openide.util.Lookup

- Packages that use Lookup
  Package | Description
  --- | ---
  org.netbeans.modules.openide.util |
  org.openide.util | Client API part of the Lookup interfaces.
  org.openide.util.lookup | Support classes for the Registration and `Lookup` extension mechanism.
  org.openide.util.lookup.implspi | Interfaces intended to be used within the NetBeans Platform.

- - ### Uses of Lookup in org.netbeans.modules.openide.util

    Methods in org.netbeans.modules.openide.util that return Lookup
    Modifier and Type | Method and Description
    --- | ---
    `static Lookup` | GlobalLookup.`current()`

    Methods in org.netbeans.modules.openide.util with parameters of type Lookup
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | GlobalLookup.`execute(Lookup defaultLookup, Runnable r)`
    `static void` | GlobalLookup.`setSystemLookup(Lookup lkp)`

  - ### Uses of Lookup in org.openide.util

    Fields in org.openide.util declared as Lookup
    Modifier and Type | Field and Description
    --- | ---
    `static Lookup` | Lookup.`EMPTY` A dummy lookup that never returns any results.

    Methods in org.openide.util that return Lookup
    Modifier and Type | Method and Description
    --- | ---
    `static Lookup` | Lookup.`getDefault()` Static method to obtain the global lookup in the whole system.
    `Lookup` | Lookup.Provider.`getLookup()` Returns lookup associated with the object.

  - ### Uses of Lookup in org.openide.util.lookup

    Subclasses of Lookup in org.openide.util.lookup
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractLookup` Implementation of the lookup from OpenAPIs that is based on the introduction of Item.
    `class` | `ProxyLookup` Implementation of lookup that can delegate to others.

    Methods in org.openide.util.lookup that return Lookup
    Modifier and Type | Method and Description
    --- | ---
    `static Lookup` | Lookups.`exclude(Lookup lookup, Class... classes)` Creates a lookup that wraps another one and filters out instances of specified classes.
    `static Lookup` | Lookups.`fixed(Object... objectsToLookup)` Creates a lookup that contains an array of objects specified via the parameter.
    `static <T,R> Lookup` | Lookups.`fixed(T[] keys, InstanceContent.Convertor<? super T,R> convertor)` Creates a lookup that contains an array of objects specified via the parameter.
    `static Lookup` | Lookups.`forPath(String path)` Creates a named lookup.
    `protected Lookup[]` | ProxyLookup.`getLookups()` Getter for the delegates.
    `static Lookup` | Lookups.`metaInfServices(ClassLoader classLoader)` Returns a lookup that implements the JDK1.3 JAR services mechanism and delegates to META-INF/services/name.of.class files.
    `static Lookup` | Lookups.`metaInfServices(ClassLoader classLoader, String prefix)` Returns a lookup that behaves exactly like `Lookups.metaInfServices(ClassLoader)` except that it does not read data from `META-INF/services/`, but instead from the specified prefix.
    `static Lookup` | Lookups.`proxy(Lookup.Provider provider)` Creates a lookup that delegates to another one but that one can change from time to time.
    `static Lookup` | Lookups.`singleton(Object objectToLookup)` Creates a singleton lookup.

    Methods in org.openide.util.lookup with parameters of type Lookup
    Modifier and Type | Method and Description
    --- | ---
    `static Lookup` | Lookups.`exclude(Lookup lookup, Class... classes)` Creates a lookup that wraps another one and filters out instances of specified classes.
    `static void` | Lookups.`executeWith(Lookup defaultLookup, Runnable code)` Temporarily (while the `code` is running) changes value of `getDefault()` to here-in provided lookup.
    `protected void` | ProxyLookup.`setLookups(Executor notifyIn, Lookup... lookups)` Changes the delegates immediatelly, notifies the listeners in provided executor, potentially later.
    `protected void` | ProxyLookup.`setLookups(Lookup... lookups)` Changes the delegates.

    Constructors in org.openide.util.lookup with parameters of type Lookup
    Constructor and Description
    `ProxyLookup(Lookup... lookups)` Create a proxy to some other lookups.

  - ### Uses of Lookup in org.openide.util.lookup.implspi

    Methods in org.openide.util.lookup.implspi that return Lookup
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract Lookup` | NamedServicesProvider.`create(String path)` Create the lookup for given path.
    `static Lookup` | NamedServicesProvider.`createLookupFor(Object obj)` Allows the providers to donate a special lookup for a given object.
    `static Lookup` | NamedServicesProvider.`forPath(String path)`
    `protected Lookup` | NamedServicesProvider.`lookupFor(Object obj)` Method for providers to work in orchestration with `NamedServicesProvider.createLookupFor(java.lang.Object)`.

Copyright © 2025 API Design. All Rights Reserved.