public enum NexusAccessor extends Enum<NexusAccessor> implements PrivilegedAction<NexusAccessor.Dispatcher>
Nexus such that it can be seen by all class loaders of
a virtual machine. Furthermore, it provides an API to access this global instance.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
NexusAccessor.Dispatcher
A dispatcher for registering type initializers in the
Nexus. |
static class |
NexusAccessor.InitializationAppender
An initialization appender that looks up a loaded type initializer from Byte Buddy's
Nexus. |
| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
register(String name,
ClassLoader classLoader,
int identification,
LoadedTypeInitializer loadedTypeInitializer)
Registers a loaded type initializer in Byte Buddy's
Nexus which is injected into the system class loader. |
NexusAccessor.Dispatcher |
run() |
String |
toString() |
static NexusAccessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NexusAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NexusAccessor INSTANCE
public static NexusAccessor[] values()
for (NexusAccessor c : NexusAccessor.values()) System.out.println(c);
public static NexusAccessor valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic NexusAccessor.Dispatcher run()
run in interface PrivilegedAction<NexusAccessor.Dispatcher>public void register(String name, ClassLoader classLoader, int identification, LoadedTypeInitializer loadedTypeInitializer)
Nexus which is injected into the system class loader.public String toString()
toString in class Enum<NexusAccessor>Copyright © 2014–2016. All rights reserved.