KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > aop > annotated > declare > DeclareAspect


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.test.aop.annotated.declare;
9
10 import org.jboss.aop.pointcut.Pointcut;
11
12 /**
13  *
14  * @author <a HREF="mailto:kabir.khan@jboss.org">Kabir Khan</a>
15  * @version $Revision: 1.1.8.2 $
16  * @@org.jboss.aop.Aspect (scope=org.jboss.aop.advice.Scope.PER_VM)
17  */

18 public class DeclareAspect
19 {
20    /**
21     * @@org.jboss.aop.DeclareError (expr="call(* org.jboss.test.aop.annotated.declare.POJO->someMethod()) AND withincode(* org.jboss.test.aop.annotated.declare.POJO->otherMethod())", msg="Should not happen")
22     */

23    Pointcut error;
24
25    /**
26     * @@org.jboss.aop.DeclareWarning (expr="call(* org.jboss.test.aop.annotated.declare.POJO->otherMethod()) AND withincode(* org.jboss.test.aop.annotated.declare.POJO->someMethod())", msg="Expected annotated warning")
27     */

28    Pointcut warning;
29    
30 }
31
Popular Tags