protected static interface NexusAccessor.Dispatcher
Nexus.| Modifier and Type | Interface and Description |
|---|---|
static class |
NexusAccessor.Dispatcher.Available
An enabled dispatcher for registering a type initializer in a
Nexus. |
static class |
NexusAccessor.Dispatcher.CreationAction
Creates a new dispatcher for accessing a
Nexus. |
static class |
NexusAccessor.Dispatcher.Unavailable
A disabled dispatcher where a
Nexus is not available. |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(java.lang.ref.Reference<? extends java.lang.ClassLoader> reference)
Cleans any dead entries of the system class loader's
Nexus. |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
void |
register(java.lang.String name,
java.lang.ClassLoader classLoader,
java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue,
int identification,
LoadedTypeInitializer loadedTypeInitializer)
Registers a type initializer with the system class loader's nexus.
|
boolean isAlive()
true if this dispatcher is alive.true if this dispatcher is alive.void clean(java.lang.ref.Reference<? extends java.lang.ClassLoader> reference)
Nexus.reference - The reference to remove.void register(java.lang.String name,
java.lang.ClassLoader classLoader,
java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue,
int identification,
LoadedTypeInitializer loadedTypeInitializer)
name - The name of a type for which a loaded type initializer is registered.classLoader - The class loader for which a loaded type initializer is registered.referenceQueue - A reference queue to notify about stale nexus entries or null if no queue should be referenced.identification - An identification for the initializer to run.loadedTypeInitializer - The loaded type initializer to be registered.