@HashCodeAndEqualsPlugin.Enhance public static class NexusAccessor.Dispatcher.Available extends Object implements NexusAccessor.Dispatcher
Nexus.NexusAccessor.Dispatcher.Available, NexusAccessor.Dispatcher.CreationAction, NexusAccessor.Dispatcher.Unavailable| Modifier | Constructor and Description |
|---|---|
protected |
Available(Method register,
Method clean)
Creates a new dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean(Reference<? extends ClassLoader> reference)
Cleans any dead entries of the system class loader's
Nexus. |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
void |
register(String name,
ClassLoader classLoader,
ReferenceQueue<? super ClassLoader> referenceQueue,
int identification,
LoadedTypeInitializer loadedTypeInitializer)
Registers a type initializer with the system class loader's nexus.
|
protected Available(Method register, Method clean)
register - The Nexus.register(String, ClassLoader, ReferenceQueue, int, Object) method.clean - The Nexus.clean(Reference) method.public boolean isAlive()
true if this dispatcher is alive.isAlive in interface NexusAccessor.Dispatchertrue if this dispatcher is alive.public void clean(Reference<? extends ClassLoader> reference)
Nexus.clean in interface NexusAccessor.Dispatcherreference - The reference to remove.public void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
register in interface NexusAccessor.Dispatchername - 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.Copyright © 2014–2019. All rights reserved.