01: package org.vraptor;
02:
03: import org.vraptor.view.ViewException;
04:
05: /**
06: * Interceptor interface.
07: *
08: * @author Guilherme Silveira
09: */
10: public interface Interceptor {
11:
12: /**
13: * Intercepts calls to logic components
14: * @param logic the logic flow
15: * @throws LogicException some logic exception occurred
16: * @throws ViewException some view exception occurred
17: */
18: void intercept(LogicFlow flow) throws LogicException, ViewException;
19:
20: }
|