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 java.lang.Object implements Implementation.Target.Factory
A factory for creating aRebaseImplementationTarget.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodRebaseResolvermethodRebaseResolverThe method rebase resolver to use.
-
Constructor Summary
Constructors Constructor Description Factory(MethodRebaseResolver methodRebaseResolver)Creates a new factory for a rebase implementation target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.Targetmake(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion)Creates an implementation target.
-
-
-
Field Detail
-
methodRebaseResolver
private final MethodRebaseResolver methodRebaseResolver
The method rebase resolver to use.
-
-
Constructor Detail
-
Factory
public Factory(MethodRebaseResolver methodRebaseResolver)
Creates a new factory for a rebase implementation target.- Parameters:
methodRebaseResolver- The method rebase resolver to use.
-
-
Method Detail
-
make
public Implementation.Target make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion)
Creates an implementation target.- Specified by:
makein 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.
-
-