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.performance;
08:
09: import org.codehaus.aspectwerkz.joinpoint.JoinPoint;
10:
11: /**
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: * @Aspect perInstance
14: */
15: public class PerInstancePerformanceAspect {
16: /**
17: * @Around call(void test.performance.PerformanceTest.methodAdvisedMethodPerInstance()) &&
18: * within(test.performance.*)
19: */
20: public Object advice(final JoinPoint joinPoint) throws Throwable {
21: return joinPoint.proceed();
22: }
23:
24: /**
25: * @Mixin within(test.performance.PerformanceTest)
26: */
27: public static class PerInstanceImpl implements PerInstance {
28: public void runPerInstance() {
29: }
30: }
31: }
|