Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/ghettojedi/aop/aspect/BaseInterceptor.java


1   package com.ghettojedi.aop.aspect;
2   
3   
4   public class BaseInterceptor implements Interceptor {
5       public Object invoke(Invocation invocation) throws Throwable {
6           return around(invocation);
7       }
8   
9       public Object around(Invocation invocation) throws Throwable {
10          before(invocation);
11          return after(invocation, invocation.proceed());
12      }
13  
14      public void before(Invocation invocation) {
15      }
16  
17      public Object after(Invocation invocation, Object returnValue) {
18          return returnValue;
19      }
20  }