KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > withinstaticref > WithinAspect


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.withinstaticref;
9
10 import org.codehaus.aspectwerkz.joinpoint.StaticJoinPoint;
11
12 public class WithinAspect {
13     static int s_count = 0;
14     public void beforeAdvice(StaticJoinPoint sjp) {
15         s_count++;
16     }
17 }
18
Popular Tags