KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > ProceedingJoinPoint


1 /*******************************************************************************
2  * Copyright (c) 2005 Contributors.
3  * All rights reserved.
4  * This program and the accompanying materials are made available
5  * under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution and is available at
7  * http://eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * initial implementation Alexandre Vasseur
11  *******************************************************************************/

12 package org.aspectj.lang;
13
14 import org.aspectj.runtime.internal.AroundClosure;
15
16 /**
17  * ProceedingJoinPoint exposes the proceed(..) method in order to support around advice in @AJ aspects
18  *
19  * @author <a HREF="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
20  */

21 public interface ProceedingJoinPoint extends JoinPoint {
22
23     /**
24      * The joinpoint needs to know about its closure so that proceed can delegate to closure.run()
25      * <p/>
26      * This internal method should not be called directly, and won't be visible to the end-user when
27      * packed in a jar (synthetic method)
28      *
29      * @param arc
30      */

31     void set$AroundClosure(AroundClosure arc);
32
33     /**
34      * Proceed with the next advice or target method invocation
35      *
36      * @return
37      * @throws Throwable
38      */

39     public Object JavaDoc proceed() throws Throwable JavaDoc;
40
41     /**
42      * Proceed with the next advice or target method invocation
43      * <p/>
44      * The given args Object[] must be in the same order and size as the advice signature but
45      * without the actual joinpoint instance
46      *
47      * @param args
48      * @return
49      * @throws Throwable
50      */

51     public Object JavaDoc proceed(Object JavaDoc[] args) throws Throwable JavaDoc;
52
53 }
54
55
56
Popular Tags