public static enum AgentBuilder.InjectionStrategy.UsingJna extends Enum<AgentBuilder.InjectionStrategy.UsingJna> 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.UsingJna |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InjectionStrategy.UsingJna[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.InjectionStrategy.UsingJna INSTANCE
public static AgentBuilder.InjectionStrategy.UsingJna[] values()
for (AgentBuilder.InjectionStrategy.UsingJna c : AgentBuilder.InjectionStrategy.UsingJna.values()) System.out.println(c);
public static AgentBuilder.InjectionStrategy.UsingJna 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.InjectionStrategy
classLoader
- 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–2022. All rights reserved.