protected static enum AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor extends Enum<AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor>
Nexus is the class that is loaded by the system class loader.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor.Dispatcher
A dispatcher for registering type initializers in the
Nexus. |
protected static class |
AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor.InitializationAppender
A byte code appender for invoking a Nexus for initializing the instrumented type.
|
| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
identifiedBy(int identification)
Creates a byte code appender for injecting a self-initializing type initializer block into the generated class.
|
void |
register(String name,
ClassLoader classLoader,
int identification,
LoadedTypeInitializer typeInitializer)
Registers a type initializer with the class loader's nexus.
|
String |
toString() |
static AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor INSTANCE
public static AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor[] values()
for (AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor c : AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor.values()) System.out.println(c);
public static AgentBuilder.InitializationStrategy.SelfInjection.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 void register(String name, ClassLoader classLoader, int identification, LoadedTypeInitializer typeInitializer)
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.identification - An identification for the initializer to run.typeInitializer - The loaded type initializer to be registered.public ByteCodeAppender identifiedBy(int identification)
identification - The identification of the initialization.public String toString()
toString in class Enum<AgentBuilder.InitializationStrategy.SelfInjection.NexusAccessor>Copyright © 2014–2016. All rights reserved.