Interface MemberSubstitution.Replacement.Factory
- All Known Implementing Classes:
MemberSubstitution.Replacement.Factory.Compound, MemberSubstitution.Replacement.ForDynamicInvocation.Factory, MemberSubstitution.Replacement.ForElementMatchers.Factory, MemberSubstitution.Replacement.NoOp
- Enclosing interface:
MemberSubstitution.Replacement
public static interface MemberSubstitution.Replacement.Factory
A factory for creating a replacement for an instrumented method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA compound factory. -
Method Summary
Modifier and TypeMethodDescriptionmake(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.
-
Method Details
-
make
MemberSubstitution.Replacement make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.typePool- The type pool being used within the member substitution being applied.- Returns:
- A replacement to use within the supplied instrumented method.
-