/** * Determine whether the interceptor should kick in, that is, * whether the {@code invokeUnderTrace} method should be called. * <p>Default behavior is to check whether the given {@code Log} * instance is enabled. Subclasses can override this to apply the * interceptor in other cases as well. * @param invocation the {@code MethodInvocation} being traced * @param logger the {@code Log} instance to check * @see #invokeUnderTrace * @see #isLogEnabled */ protected boolean isInterceptorEnabled(MethodInvocation invocation, Log logger) { return isLogEnabled(logger); }
/** * Determine whether the interceptor should kick in, that is, * whether the {@code invokeUnderTrace} method should be called. * <p>Default behavior is to check whether the given {@code Log} * instance is enabled. Subclasses can override this to apply the * interceptor in other cases as well. * @param invocation the {@code MethodInvocation} being traced * @param logger the {@code Log} instance to check * @see #invokeUnderTrace * @see #isLogEnabled */ protected boolean isInterceptorEnabled(MethodInvocation invocation, Log logger) { return isLogEnabled(logger); }
/** * Determine whether the interceptor should kick in, that is, * whether the {@code invokeUnderTrace} method should be called. * <p>Default behavior is to check whether the given {@code Log} * instance is enabled. Subclasses can override this to apply the * interceptor in other cases as well. * @param invocation the {@code MethodInvocation} being traced * @param logger the {@code Log} instance to check * @see #invokeUnderTrace * @see #isLogEnabled */ protected boolean isInterceptorEnabled(MethodInvocation invocation, Log logger) { return isLogEnabled(logger); }