[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Runtime.addShutdownHook() advising
|
Title: Runtime.addShutdownHook() advising
I'd probably put it clearer... In Runtime.addShutdownHook() I pass a Thread which define several
anonymous inner Thread classes.
My intention is to
make advice which will do my task AFTER those threads will finish their work
(i.e. when VM shuts down).
========
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
-----Original Message-----
From:
Alexey Buistov
Sent: Wednesday, March 03, 2004 12:46 PM
To:
aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users]
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