1 22 package org.jboss.test.aop.beforeafter; 23 24 import org.jboss.aop.JoinPointInfo; 25 26 31 public class GeneralAspect 32 { 33 public static String before; 34 public static String after; 35 36 public static void clear() 37 { 38 before = null; 39 after = null; 40 } 41 42 43 public void before(JoinPointInfo jp, SuperValue superValue, int i) 44 { 45 before = "before"; 46 } 47 48 public Object after(JoinPointInfo jp, Object ret, SuperValue superValue, int i) 49 { 50 after = "after"; 51 return ret; 52 } 53 54 55 } 56 | Popular Tags |