Package net.bytebuddy.dynamic
Enum ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.dynamic.ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm>
,ClassFileLocator.AgentBased.Dispatcher
- Enclosing interface:
- ClassFileLocator.AgentBased.Dispatcher
public static enum ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm extends java.lang.Enum<ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm> implements ClassFileLocator.AgentBased.Dispatcher
A dispatcher for a VM that does not support retransformation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.ClassFileLocator.AgentBased.Dispatcher
ClassFileLocator.AgentBased.Dispatcher.CreationAction, ClassFileLocator.AgentBased.Dispatcher.ForJava6CapableVm, ClassFileLocator.AgentBased.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
addTransformer(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, boolean canRetransform)
Registers a transformer.boolean
isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
Invokes theInstrumentation#isRetransformClassesSupported
method.void
retransformClasses(java.lang.instrument.Instrumentation instrumentation, java.lang.Class<?>[] type)
Retransforms the supplied classes.static ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassFileLocator.AgentBased.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 ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ClassFileLocator.AgentBased.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 (ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm c : ClassFileLocator.AgentBased.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 ClassFileLocator.AgentBased.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
-
isRetransformClassesSupported
public boolean isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
Invokes theInstrumentation#isRetransformClassesSupported
method.- Specified by:
isRetransformClassesSupported
in interfaceClassFileLocator.AgentBased.Dispatcher
- Parameters:
instrumentation
- The instrumentation instance to invoke the method on.- Returns:
true
if the supplied instrumentation instance supports retransformation.
-
addTransformer
public void addTransformer(java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer, boolean canRetransform)
Registers a transformer.- Specified by:
addTransformer
in interfaceClassFileLocator.AgentBased.Dispatcher
- Parameters:
instrumentation
- The instrumentation instance to invoke the method on.classFileTransformer
- The class file transformer to register.canRetransform
-true
if the class file transformer should be invoked upon a retransformation.
-
retransformClasses
public void retransformClasses(java.lang.instrument.Instrumentation instrumentation, java.lang.Class<?>[] type)
Retransforms the supplied classes.- Specified by:
retransformClasses
in interfaceClassFileLocator.AgentBased.Dispatcher
- Parameters:
instrumentation
- The instrumentation instance to invoke the method on.type
- The types to retransform.
-
-