public static enum AgentBuilder.InjectionStrategy.UsingUnsafe extends Enum<AgentBuilder.InjectionStrategy.UsingUnsafe> implements AgentBuilder.InjectionStrategy
sun.misc.Unsafe
or jdk.internal.misc.Unsafe
to inject classes.Modifier and Type | Class and Description |
---|---|
static class |
AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory
An injection strategy that uses a factory for creating an unsafe injector.
|
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.UsingUnsafe |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InjectionStrategy.UsingUnsafe[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.InjectionStrategy.UsingUnsafe INSTANCE
public static AgentBuilder.InjectionStrategy.UsingUnsafe[] values()
for (AgentBuilder.InjectionStrategy.UsingUnsafe c : AgentBuilder.InjectionStrategy.UsingUnsafe.values()) System.out.println(c);
public static AgentBuilder.InjectionStrategy.UsingUnsafe 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–2024. All rights reserved.