public static class AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm extends Object implements AgentBuilder.Default.ExecutingTransformer.Factory
java.lang.reflect.Module
API to override
the newly added method of the ClassFileTransformer
to capture an instrumented class's module.AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm, AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava9CapableVm(Constructor<? extends ClassFileTransformer> executingTransformer)
Creates a class file transformer factory for a Java 9 capable VM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
ClassFileTransformer |
make(ByteBuddy byteBuddy,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation)
Creates a new class file transformer for the current VM.
|
String |
toString() |
protected ForJava9CapableVm(Constructor<? extends ClassFileTransformer> executingTransformer)
executingTransformer
- A constructor for creating a ClassFileTransformer
that overrides the newly added
method for extracting the java.lang.reflect.Module
of an instrumented class.public ClassFileTransformer make(ByteBuddy byteBuddy, AgentBuilder.TypeLocator typeLocator, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Listener listener, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AccessControlContext accessControlContext, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation)
AgentBuilder.Default.ExecutingTransformer.Factory
make
in interface AgentBuilder.Default.ExecutingTransformer.Factory
byteBuddy
- The Byte Buddy instance to be used.typeLocator
- The type locator to use.typeStrategy
- The definition handler to use.locationStrategy
- The location strategy to use.listener
- The listener to notify on transformations.nativeMethodStrategy
- The native method strategy to apply.accessControlContext
- The access control context to use for loading classes.initializationStrategy
- The initialization strategy to use for transformed types.bootstrapInjectionStrategy
- The injection strategy for injecting classes into the bootstrap class loader.descriptionStrategy
- The description strategy for resolving type descriptions for types.ignoredTypeMatcher
- Identifies types that should not be instrumented.transformation
- The transformation object for handling type transformations.Copyright © 2014–2016. All rights reserved.