- java.lang.Object
-
- com.remondis.remap.InvocationSensor<T>
-
public class InvocationSensor<T> extends Object
TheInvocationSensortracks get-method invocations on a proxy class and makes the invocation information available to theMapper.- Author:
- schuettec
-
-
Constructor Summary
Constructors Constructor Description InvocationSensor(Class<T> superType)Creates a proxy for the given class type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectintercept(Method method, Object[] args)This method will be called each time when the object proxy calls any of its methods.
-
-
-
Method Detail
-
intercept
@RuntimeType public Object intercept(@Origin Method method, @AllArguments Object[] args) throws Exception
This method will be called each time when the object proxy calls any of its methods.- Parameters:
method- the intercepted methodargs- the given arguments ti the intercepted method- Throws:
Exception- throws
-
-