public static interface AgentBuilder.InjectionStrategy
| Modifier and Type | Interface and Description |
|---|---|
static class |
AgentBuilder.InjectionStrategy.Disabled
An injection strategy that does not permit class injection.
|
static class |
AgentBuilder.InjectionStrategy.UsingInstrumentation
An injection strategy that uses bootstrap injection using an
Instrumentation instance. |
static class |
AgentBuilder.InjectionStrategy.UsingJna
An injection strategy that uses JNA to inject classes.
|
static class |
AgentBuilder.InjectionStrategy.UsingReflection
An injection strategy that uses Java reflection.
|
static class |
AgentBuilder.InjectionStrategy.UsingUnsafe
An injection strategy that uses
sun.misc.Unsafe or jdk.internal.misc.Unsafe to inject classes. |
| 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.
|
ClassInjector resolve(@MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain)
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–2025. All rights reserved.