protected static enum AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor extends Enum<AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor>
AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus
is loaded by the system class loader.Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
initializerFor(TypeDescription instrumentedType)
Creates a stack manipulation for a given instrumented type that injects a code block for
calling the system class loader's nexus in order to apply a self-initialization.
|
void |
register(String name,
ClassLoader classLoader,
Object typeInitializer)
Registers a type initializer with the class loader's nexus.
|
String |
toString() |
static AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor INSTANCE
public static AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor[] values()
for (AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor c : AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor.values()) System.out.println(c);
public static AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor 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, Object 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.typeInitializer
- The loaded type initializer to be registered.public ByteCodeAppender initializerFor(TypeDescription instrumentedType)
instrumentedType
- The instrumented type for which the code block is to be injected.public String toString()
toString
in class Enum<AgentBuilder.Default.InitializationStrategy.SelfInjection.Nexus.Accessor>
Copyright © 2014–2015. All rights reserved.