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.Compound
A compound transformer that allows to group several
AgentBuilder.Transformers as a single transformer. |
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. |
static class |
AgentBuilder.Transformer.NoOp
A no-op implementation of a
AgentBuilder.Transformer that does
not modify the supplied dynamic type. |
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder<?> |
transform(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module)
Allows for a transformation of a
DynamicType.Builder. |
DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule module)
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.builder.Copyright © 2014–2019. All rights reserved.