Package net.bytebuddy.agent.builder
Enum Class 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:
Serializable
,Comparable<AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm>
,Constable
,AgentBuilder.Default.ExecutingTransformer.Factory
- Enclosing interface:
AgentBuilder.Default.ExecutingTransformer.Factory
public static enum AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
extends Enum<AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm>
implements AgentBuilder.Default.ExecutingTransformer.Factory
A factory for a
ClassFileTransformer
on a VM that does not support the java.lang.Module
API.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForLegacyVm
private ForLegacyVm()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
make
public ResettableClassFileTransformer make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, 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 pool strategy to use.typeStrategy
- The definition handler to use.locationStrategy
- The location strategy to use.classFileLocator
- A class file locator for locating globally available types.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.resubmissionEnforcer
- The resubmission enforcer to use.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.
-