Interface AgentBuilder.InjectionStrategy

All Known Implementing Classes:
AgentBuilder.InjectionStrategy.Disabled, AgentBuilder.InjectionStrategy.UsingInstrumentation, AgentBuilder.InjectionStrategy.UsingJna, AgentBuilder.InjectionStrategy.UsingReflection, AgentBuilder.InjectionStrategy.UsingUnsafe, AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory
Enclosing interface:
AgentBuilder

public static interface AgentBuilder.InjectionStrategy
A strategy for injecting auxiliary types into a class loader.
  • Method Details

    • resolve

      ClassInjector resolve(@MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain)
      Resolves the class injector to use for a given class loader and protection domain.
      Parameters:
      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.
      Returns:
      The class injector to use.