public static enum ClassInjector.UsingInstrumentation.Target extends Enum<ClassInjector.UsingInstrumentation.Target>
| Enum Constant and Description | 
|---|
| BOOTSTRAPRepresentation of the bootstrap class loader. | 
| SYSTEMRepresentation of the system class loader. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ClassLoader | getClassLoader()Returns the class loader to load classes from. | 
| protected abstract void | inject(Instrumentation instrumentation,
      JarFile jarFile)Adds the given classes to the represented class loader. | 
| static ClassInjector.UsingInstrumentation.Target | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ClassInjector.UsingInstrumentation.Target[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ClassInjector.UsingInstrumentation.Target BOOTSTRAP
public static final ClassInjector.UsingInstrumentation.Target SYSTEM
public static ClassInjector.UsingInstrumentation.Target[] values()
for (ClassInjector.UsingInstrumentation.Target c : ClassInjector.UsingInstrumentation.Target.values()) System.out.println(c);
public static ClassInjector.UsingInstrumentation.Target valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@MaybeNull protected ClassLoader getClassLoader()
protected abstract void inject(Instrumentation instrumentation, JarFile jarFile)
instrumentation - The instrumentation instance to use.jarFile - The jar file to append.Copyright © 2014–2025. All rights reserved.