Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Pointcut definition possible?

Or maybe declare your annotation itself inheritable with @Inherited?
g

On Wed, Sep 3, 2008 at 11:24 AM, Andrew Eisenberg <andrew@xxxxxxxxxxxx> wrote:
> Try this:
>
>
> public aspect RemoteAspect {
>    before() : execution(* (@Remote *+).*(..)) {
>        System.out.println("In aspect");
>    }
>
> }
>
>
>
>
>
> On Wed, Sep 3, 2008 at 1:34 AM, A.Reiter <a.reiter@xxxxxx> 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: a.reiter@xxxxxxxxxx
>> ICQ: 85763074
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top