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