Package | Description |
---|---|
org.openide.util |
Client API part of the
Lookup
interfaces.
|
org.openide.util.lookup |
Support classes for the Registration and
Lookup extension mechanism. |
Modifier and Type | Field | Description |
---|---|---|
static Lookup |
Lookup.EMPTY |
A dummy lookup that never returns any results.
|
Modifier and Type | Method | 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.
|
Modifier and Type | Class | 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.
|
Modifier and Type | Method | 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
namedlookup. |
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.
|
Modifier and Type | Method | 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.
|
Constructor | Description |
---|---|
ProxyLookup(Lookup... lookups) |
Create a proxy to some other lookups.
|
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.