java.lang.Object
java.lang.Enum<InjectionMode>
io.opentelemetry.javaagent.extension.instrumentation.internal.injection.InjectionMode
All Implemented Interfaces:
Serializable, Comparable<InjectionMode>, java.lang.constant.Constable

public enum InjectionMode extends Enum<InjectionMode>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Enum Constant Details

    • CLASS_ONLY

      public static final InjectionMode CLASS_ONLY
    • RESOURCE_ONLY

      public static final InjectionMode RESOURCE_ONLY
    • CLASS_AND_RESOURCE

      public static final InjectionMode CLASS_AND_RESOURCE
  • Method Details

    • values

      public static InjectionMode[] 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 InjectionMode 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
    • shouldInjectClass

      public boolean shouldInjectClass()
    • shouldInjectResource

      public boolean shouldInjectResource()