Package io.micronaut.test.typepollution
Class TypePollutionTransformer
java.lang.Object
io.micronaut.test.typepollution.TypePollutionTransformer
- All Implemented Interfaces:
net.bytebuddy.agent.builder.AgentBuilder.Transformer
public final class TypePollutionTransformer
extends Object
implements net.bytebuddy.agent.builder.AgentBuilder.Transformer
AgentBuilder.Transformer
implementation that installs the necessary hooks to call into
the FocusListener
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Transformer
net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice, net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForBuildPlugin
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.bytebuddy.agent.builder.AgentBuilder.Transformer
create()
Create a new instance of this transformer.static void
install
(Instrumentation instrumentation) Install this transformer into the givenInstrumentation
.net.bytebuddy.dynamic.DynamicType.Builder<?>
transform
(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule module, ProtectionDomain protectionDomain)
-
Method Details
-
create
public static net.bytebuddy.agent.builder.AgentBuilder.Transformer create()Create a new instance of this transformer.- Returns:
- The instance
-
transform
public net.bytebuddy.dynamic.DynamicType.Builder<?> transform(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, ClassLoader classLoader, net.bytebuddy.utility.JavaModule module, ProtectionDomain protectionDomain) - Specified by:
transform
in interfacenet.bytebuddy.agent.builder.AgentBuilder.Transformer
-
install
Install this transformer into the givenInstrumentation
.- Parameters:
instrumentation
- The instrumentation used for modifying classes
-