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.deployment;
08:
09: import org.codehaus.aspectwerkz.definition.DeploymentScope;
10: import org.codehaus.aspectwerkz.definition.Pointcut;
11: import org.codehaus.aspectwerkz.annotation.Expression;
12: import org.codehaus.aspectwerkz.annotation.Before;
13:
14: /**
15: * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
16: */
17: public class HotdeployableAspect {
18:
19: static int HIT = 0;
20:
21: @Expression("execution(void test.deployment.HotDeployedTest.target())")
22: Pointcut target;
23:
24: @Before("target")
25: void before() {
26: HIT++;
27: }
28:
29: }
|