KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > intercept > Advisable


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.intercept;
5
6 /**
7  * The advisable interface is introduced to target class made advisable.
8  * </p>
9  * Note: user should ensure that the target class has no user defined method named aw_addAdvice
10  * and aw_removeAdvice. Other methods are made synthetic and thus will not lead to name clashes.
11  *
12  * @author <a HREF="mailto:jboner@codehaus.org">Jonas Bonér </a>
13  */

14 public interface Advisable {
15
16   /**
17    * @param pointcut
18    * @param advice
19    */

20   void aw_addAdvice(String JavaDoc pointcut, Advice advice);
21
22   /**
23    * @param pointcut
24    * @param adviceClass
25    */

26   void aw_removeAdvice(String JavaDoc pointcut, Class JavaDoc adviceClass);
27
28   /**
29    * @param joinPointIndex
30    * @return
31    */

32   AroundAdvice[] aw$getAroundAdvice(final int joinPointIndex);
33
34   /**
35    * @param joinPointIndex
36    * @return
37    */

38   BeforeAdvice[] aw$getBeforeAdvice(final int joinPointIndex);
39
40   /**
41    * @param joinPointIndex
42    * @return
43    */

44   AfterAdvice[] aw$getAfterAdvice(final int joinPointIndex);
45
46   /**
47    * @param joinPointIndex
48    * @return
49    */

50   AfterReturningAdvice[] aw$getAfterReturningAdvice(final int joinPointIndex);
51
52   /**
53    * @param joinPointIndex
54    * @return
55    */

56   AfterThrowingAdvice[] aw$getAfterThrowingAdvice(final int joinPointIndex);
57 }
58
Popular Tags