Class InvocationSensor<T>


  • public class InvocationSensor<T>
    extends Object
    The InvocationSensor tracks get-method invocations on a proxy class and makes the invocation information available to the Mapper.
    Author:
    schuettec
    • Constructor Detail

      • InvocationSensor

        public InvocationSensor​(Class<T> superType)
        Creates a proxy for the given class type.
        Parameters:
        superType - the class type for which the proxy should be created
    • 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 method
        args - the given arguments ti the intercepted method
        Throws:
        Exception - throws