1 /************************************************************************************** 2 * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. * 3 * http://aspectwerkz.codehaus.org * 4 * ---------------------------------------------------------------------------------- * 5 * The software in this package is published under the terms of the LGPL license * 6 * a copy of which has been included with this distribution in the license.txt file. * 7 **************************************************************************************/ 8 package test.fieldsetbug; 9 10 11 import org.codehaus.aspectwerkz.joinpoint.JoinPoint; 12 13 public class AroundAccessorAspect { 14 /** 15 * @Around set(* test.fieldsetbug.TargetClass.public*) AND within(test.fieldsetbug.*) 16 */ 17 public Object aroundAccessor(JoinPoint jp) throws Throwable { 18 if (jp.getCallee() != jp.getCaller()) { 19 return null; 20 } else { 21 return jp.proceed(); 22 } 23 } 24 25 } 26