Package net.bytebuddy.implementation
Class MethodCall.TerminationHandler.FieldSetting.Explicit
java.lang.Object
net.bytebuddy.implementation.MethodCall.TerminationHandler.FieldSetting.Explicit
- All Implemented Interfaces:
MethodCall.TerminationHandler.Factory
- Enclosing class:
MethodCall.TerminationHandler.FieldSetting
@Enhance
protected static class MethodCall.TerminationHandler.FieldSetting.Explicit
extends Object
implements MethodCall.TerminationHandler.Factory
A factory for a field-setting termination handler that locates a given field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldDescription
The matcher being used for locating a field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Explicit
(FieldDescription fieldDescription) Creates a factory for a field-setting termination handler. -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.
-
Field Details
-
fieldDescription
The matcher being used for locating a field.
-
-
Constructor Details
-
Explicit
Creates a factory for a field-setting termination handler.- Parameters:
fieldDescription
- The field to set.
-
-
Method Details
-
make
Creates a termination handler for a given instrumented type.- Specified by:
make
in interfaceMethodCall.TerminationHandler.Factory
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A termination handler to apply for the instrumented type.
-