@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory extends Object implements AgentBuilder.InjectionStrategy
AgentBuilder.InjectionStrategy.Disabled, AgentBuilder.InjectionStrategy.UsingInstrumentation, AgentBuilder.InjectionStrategy.UsingJna, AgentBuilder.InjectionStrategy.UsingReflection, AgentBuilder.InjectionStrategy.UsingUnsafe| Constructor and Description |
|---|
OfFactory(ClassInjector.UsingUnsafe.Factory factory)
Creates an injection strategy based on a factory.
|
| 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.
|
public OfFactory(ClassInjector.UsingUnsafe.Factory factory)
factory - The factory to use for creating an unsafe injector.public 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.