Skip to main content

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

Hi,

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

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



Back to the top