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.
-
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.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation, AgentBuilder.CircularityLock circularityLock)
Description copied from interface:AgentBuilder.Default.ExecutingTransformer.Factory
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.bootstrapInjectionStrategy
- The injection strategy for injecting classes into the bootstrap class loader.lambdaInstrumentationStrategy
- The lambda instrumentation strategy to use.descriptionStrategy
- The description strategy for resolving type descriptions for types.fallbackStrategy
- The fallback strategy to use.installationListener
- The installation listener to notify.ignoredTypeMatcher
- Identifies types that should not be instrumented.transformation
- The transformation object for handling type transformations.circularityLock
- The circularity lock to use.- Returns:
- A class file transformer for the current VM that supports the API of the current VM.
-
-