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 /** 14 * Intercepts the method invocation 15 * 16 * @param invocation Context information about the invocation 17 */ 18 void intercept(MethodInvocation invocation) throws IllegalAccessException, InvocationTargetException; 19 }