Package net.bytebuddy.dynamic.loading
Enum ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.dynamic.loading.ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm>
,ClassInjector.UsingInstrumentation.Dispatcher
- Enclosing interface:
- ClassInjector.UsingInstrumentation.Dispatcher
public static enum ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm extends java.lang.Enum<ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm> implements ClassInjector.UsingInstrumentation.Dispatcher
A dispatcher for a legacy VM that is not capable of appending jar files using instrumentation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.ClassInjector.UsingInstrumentation.Dispatcher
ClassInjector.UsingInstrumentation.Dispatcher.CreationAction, ClassInjector.UsingInstrumentation.Dispatcher.ForJava6CapableVm, ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendToBootstrapClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation, java.util.jar.JarFile jarFile)
Appends a jar file to the bootstrap class loader.void
appendToSystemClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation, java.util.jar.JarFile jarFile)
Appends a jar file to the system class loader.boolean
isAlive()
Returnstrue
if this dispatcher is alive.static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm c : ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isAlive
public boolean isAlive()
Returnstrue
if this dispatcher is alive.- Specified by:
isAlive
in interfaceClassInjector.UsingInstrumentation.Dispatcher
- Returns:
true
if this dispatcher is alive.
-
appendToBootstrapClassLoaderSearch
public void appendToBootstrapClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation, java.util.jar.JarFile jarFile)
Appends a jar file to the bootstrap class loader.- Specified by:
appendToBootstrapClassLoaderSearch
in interfaceClassInjector.UsingInstrumentation.Dispatcher
- Parameters:
instrumentation
- The instrumentation instance to interact with.jarFile
- The jar file to append.
-
appendToSystemClassLoaderSearch
public void appendToSystemClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation, java.util.jar.JarFile jarFile)
Appends a jar file to the system class loader.- Specified by:
appendToSystemClassLoaderSearch
in interfaceClassInjector.UsingInstrumentation.Dispatcher
- Parameters:
instrumentation
- The instrumentation instance to interact with.jarFile
- The jar file to append.
-
-