Try this:

public aspect RemoteAspect {
    before() : execution(* (@Remote *+).*(..)) {
        System.out.println("In aspect");
    }

}





On Wed, Sep 3, 2008 at 1:34 AM, A.Reiter <[EMAIL PROTECTED]> wrote:
> Hi folks
> I have a question about a pointcut definition, after reading the manuals, it
> was not possible for me to define the following:
>
> there is an annotated interface
>
> -----------------------------------------------
> @RemoteAnnotaion
> public interface Foo {
>        void do();
> }
> -----------------------------------------------
>
> the implementation:
> -----------------------------------------------
> public class FooImpl implements Foo {
>        public void do() {
>                ...
>                doHelper();
>                ...
>        }
>        public void doHelper() {
>                ...
>        }
> }
> -----------------------------------------------
>
> can I create a Pintcut, which matches all method executions, which
> implements an interface marked with the @RemoteAnnotation
> what I want to do, is a pointcut for the method "do()" but not for the
> method "doHelper()"
> is that possible?
>
> regards a.reiter
>
> jabber: [EMAIL PROTECTED]
> ICQ: 85763074
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to