1 package com.atlassian.plugins.rest.common.interceptor;
2
3 import java.lang.reflect.InvocationTargetException;
4
5 /**
6 * Intercepts the execution of a resource method. Implementations should call {@link MethodInvocation#invoke()} to
7 * call the next interceptor in the chain. Interceptor instances are created once for every resource method.
8 *
9 * @since 2.0
10 */
11 public interface ResourceInterceptor {
12 /**
13 * Intercepts the method invocation
14 *
15 * @param invocation Context information about the invocation
16 */
17 void intercept(MethodInvocation invocation) throws IllegalAccessException, InvocationTargetException;
18 }