Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Runtime.addShutdownHook() advising

Title: Runtime.addShutdownHook() advising

Hi there!

I need to make some actions with my aspect after execution of Runtime.addShutdownHook().

  public pointcut  shutdown(): execution (* Runtime.addShutdownHook(Thread));

  after(): shutdown(){
    System.err.println("ADVICE EXECUTING);
    // do whatever
  }

But nothing is being printed. The question is: why? Is this task doable?

========
Alexey Buistov,
Software Engineer,
Miratech Ltd.
41 Nauki Ave,
03028 Kiev, Ukraine,
tel:   +38 044 206 4090 ext number
        +38 044 206 4099
fax:  +38 044 206 4091


Back to the top