Package net.bytebuddy.agent.builder
Enum AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm>
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm>
,AgentBuilder.Default.ExecutingTransformer.Factory
- Enclosing interface:
- AgentBuilder.Default.ExecutingTransformer.Factory
public static enum AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm extends java.lang.Enum<AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm> implements AgentBuilder.Default.ExecutingTransformer.Factory
A factory for aClassFileTransformer
on a VM that does not support thejava.lang.Module
API.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Default.ExecutingTransformer.Factory
AgentBuilder.Default.ExecutingTransformer.Factory.CreationAction, AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm, AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.Default.ExecutingTransformer.Factory.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 (AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm c : AgentBuilder.Default.ExecutingTransformer.Factory.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 AgentBuilder.Default.ExecutingTransformer.Factory.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
-
make
public ResettableClassFileTransformer make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.- Specified by:
make
in interfaceAgentBuilder.Default.ExecutingTransformer.Factory
- Parameters:
byteBuddy
- The Byte Buddy instance to be used.listener
- The listener to notify on transformations.poolStrategy
- The type locator to use.typeStrategy
- The definition handler to use.locationStrategy
- The location strategy to use.nativeMethodStrategy
- The native method strategy to apply.initializationStrategy
- The initialization strategy to use for transformed types.injectionStrategy
- The injection strategy to use.lambdaInstrumentationStrategy
- The lambda instrumentation strategy to use.descriptionStrategy
- The description strategy for resolving type descriptions for types.fallbackStrategy
- The fallback strategy to use.classFileBufferStrategy
- The class file buffer strategy to use.installationListener
- The installation listener to notify.ignoreMatcher
- Identifies types that should not be instrumented.transformations
- The transformations to apply on non-ignored types.circularityLock
- The circularity lock to use.- Returns:
- A class file transformer for the current VM that supports the API of the current VM.
-
-