Enum AgentBuilder.InjectionStrategy.Disabled

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

public static enum AgentBuilder.InjectionStrategy.Disabled extends Enum<AgentBuilder.InjectionStrategy.Disabled> implements AgentBuilder.InjectionStrategy
An injection strategy that does not permit class injection.
  • Enum Constant Details

  • Constructor Details

    • Disabled

      private Disabled()
  • Method Details

    • values

      public static AgentBuilder.InjectionStrategy.Disabled[] 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.Disabled 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.