Class MethodCall.TargetHandler.ForMethodCall.Factory
java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForMethodCall.Factory
- All Implemented Interfaces:
InstrumentedType.Prepareable, MethodCall.TargetHandler.Factory
- Enclosing class:
MethodCall.TargetHandler.ForMethodCall
@Enhance
protected static class MethodCall.TargetHandler.ForMethodCall.Factory
extends Object
implements MethodCall.TargetHandler.Factory
Creates a factory for invoking a method on the return type of another method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFactory(MethodCall methodCall) Creates a new factory for invoking another method call as a method target. -
Method Summary
Modifier and TypeMethodDescriptionmake(Implementation.Target implementationTarget) Creates a target handler for a given implementation target.prepare(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
methodCall
The method call to invoke.
-
-
Constructor Details
-
Factory
Creates a new factory for invoking another method call as a method target.- Parameters:
methodCall- The method call to invoke.
-
-
Method Details
-
prepare
Prepares a given instrumented type.- Specified by:
preparein interfaceInstrumentedType.Prepareable- Parameters:
instrumentedType- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
make
Creates a target handler for a given implementation target.- Specified by:
makein interfaceMethodCall.TargetHandler.Factory- Parameters:
implementationTarget- The implementation target to use.- Returns:
- The target handler to use.
-