public static enum AgentBuilder.InjectionStrategy.UsingReflection extends Enum<AgentBuilder.InjectionStrategy.UsingReflection> implements AgentBuilder.InjectionStrategy
AgentBuilder.InjectionStrategy.Disabled, AgentBuilder.InjectionStrategy.UsingInstrumentation, AgentBuilder.InjectionStrategy.UsingJna, AgentBuilder.InjectionStrategy.UsingReflection, AgentBuilder.InjectionStrategy.UsingUnsafe| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
ClassInjector |
resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
static AgentBuilder.InjectionStrategy.UsingReflection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InjectionStrategy.UsingReflection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.InjectionStrategy.UsingReflection INSTANCE
public static AgentBuilder.InjectionStrategy.UsingReflection[] values()
for (AgentBuilder.InjectionStrategy.UsingReflection c : AgentBuilder.InjectionStrategy.UsingReflection.values()) System.out.println(c);
public static AgentBuilder.InjectionStrategy.UsingReflection 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 ClassInjector resolve(@MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain)
resolve in interface AgentBuilder.InjectionStrategyclassLoader - The class loader to use or null if using the bootstrap loader.protectionDomain - The protection domain to use or null if all privileges should be assigned.Copyright © 2014–2023. All rights reserved.