Interface MethodBeforeAdvice

    • Method Detail

      • before

        void before​(Method method,
                    Object[] args,
                    @Nullable
                    Object target)
             throws Throwable
        Callback before a given method is invoked.
        Parameters:
        method - the method being invoked
        args - the arguments to the method
        target - the target of the method invocation. May be null.
        Throws:
        Throwable - if this object wishes to abort the call. Any exception thrown will be returned to the caller if it's allowed by the method signature. Otherwise the exception will be wrapped as a runtime exception.