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