Package io.appium.java_client.proxy
Class Interceptor
- java.lang.Object
-
- io.appium.java_client.proxy.Interceptor
-
public class Interceptor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.Object,java.util.Collection<MethodCallListener>>LISTENERS
-
Constructor Summary
Constructors Constructor Description Interceptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Objectintercept(java.lang.Object self, java.lang.reflect.Method method, java.lang.Object[] args, java.util.concurrent.Callable<?> callable)A magic method used to wrap public method calls in classes patched by ByteBuddy and acting as proxies.
-
-
-
Field Detail
-
LISTENERS
public static final java.util.Map<java.lang.Object,java.util.Collection<MethodCallListener>> LISTENERS
-
-
Method Detail
-
intercept
@RuntimeType public static java.lang.Object intercept(@This java.lang.Object self, @Origin java.lang.reflect.Method method, @AllArguments java.lang.Object[] args, @SuperCall java.util.concurrent.Callable<?> callable) throws java.lang.ThrowableA magic method used to wrap public method calls in classes patched by ByteBuddy and acting as proxies.- Parameters:
self- The reference to the original instance.method- The reference to the original method.args- The reference to method args.callable- The reference to the non-patched callable to avoid call recursion.- Returns:
- Either the original method result or the patched one.
- Throws:
java.lang.Throwable
-
-