Interface ClassReplaceStrategy
-
public interface ClassReplaceStrategySpecifies the replace strategy for a class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwith(Class<?> cls)Replaces all method invocations on class specified class with method invocation tocls.
-
-
-
Method Detail
-
with
void with(Class<?> cls)
Replaces all method invocations on class specified class with method invocation tocls. Also replaces all constructor invocations. You can see this as duck typing.- Parameters:
cls- The class that will replace the other class.
-
-