Package net.bytebuddy.agent.builder
Class ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForJava9CapableVm
- java.lang.Object
-
- net.bytebuddy.agent.builder.ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForJava9CapableVm
-
- All Implemented Interfaces:
ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
- Enclosing interface:
- ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
@Enhance public static class ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForJava9CapableVm extends java.lang.Object implements ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
A factory for creating a substitutable class file transformer when the module system is supported.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.CreationAction, ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForJava9CapableVm, ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForLegacyVm
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Constructor<? extends ResettableClassFileTransformer>
withCallback
The constructor to invoke.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava9CapableVm(java.lang.reflect.Constructor<? extends ResettableClassFileTransformer> withCallback)
Creates a new Java 9 capable factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResettableClassFileTransformer
make(ResettableClassFileTransformer classFileTransformer, ResettableClassFileTransformer.WithDelegation.Callback<?> callback)
Creates a new substitutable class file transformer.
-
-
-
Field Detail
-
withCallback
private final java.lang.reflect.Constructor<? extends ResettableClassFileTransformer> withCallback
The constructor to invoke.
-
-
Constructor Detail
-
ForJava9CapableVm
protected ForJava9CapableVm(java.lang.reflect.Constructor<? extends ResettableClassFileTransformer> withCallback)
Creates a new Java 9 capable factory.- Parameters:
withCallback
- The constructor to invoke.
-
-
Method Detail
-
make
public ResettableClassFileTransformer make(ResettableClassFileTransformer classFileTransformer, ResettableClassFileTransformer.WithDelegation.Callback<?> callback)
Creates a new substitutable class file transformer.- Specified by:
make
in interfaceResettableClassFileTransformer.WithDelegation.WithCallback.Factory
- Parameters:
classFileTransformer
- The class file transformer to wrap.callback
- The callback to invoke.- Returns:
- The wrapping class file transformer.
-
-