public static interface AgentBuilder.Transformer
DynamicType
. Such a modification
is then applied to any instrumented type that was matched by the preceding matcher.Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.Transformer.ForAdvice
A transformer for applying an
Advice where this advice class might reference types of both the agent's and the user's
class loader. |
static class |
AgentBuilder.Transformer.ForBuildPlugin
A transformer that applies a build
Plugin . |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Allows for a transformation of a
DynamicType.Builder . |
DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull ProtectionDomain protectionDomain)
DynamicType.Builder
.builder
- The dynamic builder to transform.typeDescription
- The description of the type currently being instrumented.classLoader
- The class loader of the instrumented class. Might be null
to represent the bootstrap class loader.module
- The class's module or null
if the current VM does not support modules.protectionDomain
- The protection domain of the transformed type or null
if not availablebuilder
.Copyright © 2014–2025. All rights reserved.