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