Package net.bytebuddy.agent.builder
Interface ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
- All Known Implementing Classes:
ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForJava9CapableVm
,ResettableClassFileTransformer.WithDelegation.WithCallback.Factory.ForLegacyVm
- Enclosing class:
ResettableClassFileTransformer.WithDelegation.WithCallback<T>
static interface ResettableClassFileTransformer.WithDelegation.WithCallback.Factory
A factory that creates a resettable class file transformer depending on the availability of the module system.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
An action to create a suitable factory.static class
A factory for creating a substitutable class file transformer when the module system is supported.static enum
A factory for a substitutable class file transformer when the module system is not supported. -
Method Summary
Modifier and TypeMethodDescriptionmake
(ResettableClassFileTransformer classFileTransformer, ResettableClassFileTransformer.WithDelegation.Callback<?> callback) Creates a new substitutable class file transformer.
-
Method Details
-
make
ResettableClassFileTransformer make(ResettableClassFileTransformer classFileTransformer, ResettableClassFileTransformer.WithDelegation.Callback<?> callback) Creates a new substitutable class file transformer.- Parameters:
classFileTransformer
- The class file transformer to wrap.callback
- The callback to invoke.- Returns:
- The wrapping class file transformer.
-