@Override default R intercept(InvocationContext<T, R> context) { if (context instanceof MethodInvocationContext) { return intercept((MethodInvocationContext<T, R>) context); } else { throw new IllegalArgumentException("Context must be an instance of MethodInvocationContext"); } } }
@Override default R intercept(InvocationContext<T, R> context) { if (context instanceof MethodInvocationContext) { return intercept((MethodInvocationContext<T, R>) context); } else { throw new IllegalArgumentException("Context must be an instance of MethodInvocationContext"); } } }
@Override default R intercept(InvocationContext<T, R> context) { if (context instanceof MethodInvocationContext) { return intercept((MethodInvocationContext<T, R>) context); } else { throw new IllegalArgumentException("Context must be an instance of MethodInvocationContext"); } } }