Class RebaseImplementationTarget.Factory
java.lang.Object
net.bytebuddy.dynamic.scaffold.inline.RebaseImplementationTarget.Factory
- All Implemented Interfaces:
Implementation.Target.Factory
- Enclosing class:
- RebaseImplementationTarget
@Enhance
public static class RebaseImplementationTarget.Factory
extends Object
implements Implementation.Target.Factory
A factory for creating a
RebaseImplementationTarget
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodRebaseResolver
The method rebase resolver to use. -
Constructor Summary
ConstructorsConstructorDescriptionFactory
(MethodRebaseResolver methodRebaseResolver) Creates a new factory for a rebase implementation target. -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.
-
Field Details
-
methodRebaseResolver
The method rebase resolver to use.
-
-
Constructor Details
-
Factory
Creates a new factory for a rebase implementation target.- Parameters:
methodRebaseResolver
- The method rebase resolver to use.
-
-
Method Details
-
make
public Implementation.Target make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.- Specified by:
make
in interfaceImplementation.Target.Factory
- Parameters:
instrumentedType
- The instrumented type.methodGraph
- A method graph of the instrumented type.classFileVersion
- The type's class file version.- Returns:
- An implementation target for the instrumented type.
-