Enum AgentBuilder.InjectionStrategy.UsingJna

java.lang.Object
java.lang.Enum<AgentBuilder.InjectionStrategy.UsingJna>
net.bytebuddy.agent.builder.AgentBuilder.InjectionStrategy.UsingJna
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.InjectionStrategy.UsingJna>, java.lang.constant.Constable, AgentBuilder.InjectionStrategy
Enclosing interface:
AgentBuilder.InjectionStrategy

public static enum AgentBuilder.InjectionStrategy.UsingJna extends Enum<AgentBuilder.InjectionStrategy.UsingJna> implements AgentBuilder.InjectionStrategy
An injection strategy that uses JNA to inject classes. This strategy is only available if JNA was added as a dependency.
  • Enum Constant Details

  • Constructor Details

    • UsingJna

      private UsingJna()
  • Method Details

    • values

      public static AgentBuilder.InjectionStrategy.UsingJna[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AgentBuilder.InjectionStrategy.UsingJna valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • resolve

      public ClassInjector resolve(@MaybeNull ClassLoader classLoader, @MaybeNull ProtectionDomain protectionDomain)
      Resolves the class injector to use for a given class loader and protection domain.
      Specified by:
      resolve in interface AgentBuilder.InjectionStrategy
      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.