Skip to main content

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

Hi Andre,

> Is it posible to an aspect intercept itself? (nothing happens)

In the general case yes, and that often leads to infinite loops if one is
not careful. In this case Lendvai is correct and you'll need to extend the
aspect first.

-Macneil

> abstract aspect AbstractMethodInterception {
>   abstract pointcut calls();
>
>   before() : call(AbstractMethodInterception.new(..)) {
>     System.out.println("constructor");
>   }
>
>   after() : call(* AbstractMethodInterception.finalize(..)) {
>     System.out.println("destructor");
>   }
> }
>
> Thanks,
>
> André
>
>
> ---
> Acabe com aquelas janelinhas que pulam na sua tela.
> AntiPop-up UOL - É grátis!
> http://antipopup.uol.com.br
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top