Package net.bytebuddy.agent.builder
Interface AgentBuilder.Default.ExecutingTransformer.Factory
-
- All Known Implementing Classes:
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm
,AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
- Enclosing class:
- AgentBuilder.Default.ExecutingTransformer
protected static interface AgentBuilder.Default.ExecutingTransformer.Factory
A factory for creating aClassFileTransformer
for the current VM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AgentBuilder.Default.ExecutingTransformer.Factory.CreationAction
An action to create an implementation ofAgentBuilder.Default.ExecutingTransformer
that support Java 9 modules.static class
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm
A factory for a class file transformer on a JVM that supports thejava.lang.Module
API to override the newly added method of theClassFileTransformer
to capture an instrumented class's module.static class
AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
A factory for aClassFileTransformer
on a VM that does not support thejava.lang.Module
API.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
Creates a new class file transformer for the current VM.
-
-
-
Method Detail
-
make
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)
Creates a new class file transformer for the current VM.- 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.
-
-