Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Capturing shutdown

OK, would the following pointcut be useful somewhere in your appExit
pointcut
cflow(execution(public void Thread+.run()));

Val

----- Original Message ----- 
From: "Eric Bodden" <eric@xxxxxxxxx>
To: <aspectj-users@xxxxxxxxxxx>
Sent: Thursday, June 02, 2005 5:13 PM
Subject: RE: [aspectj-users] Capturing shutdown


>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Valentin Crettaz wrote:
> > Have you tried investigating
> > java.lang.Runtime.addShutdownHook(java.lang.Thread)
> > http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#addSh
> > utdownHook(java.lang.Thread)
>
> Yes, I have. Thanks for the hint. However I would really prefer a
> pure AspectJ solution, since shutdown hooks are not 100% reliable
> AFAIK.
>
> Eric
>
> - -- 
> Eric Bodden
> Chair I2 for Programming Languages and Program Analysis
> RWTH Aachen University
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0.3
>
> iQA/AwUBQp8iHcwiFCm7RlWCEQKeDwCfdVhedR6wJ8e+Yy4rPXxnevzZJzoAoLPQ
> eGfUn66JQg6LypcKmnp3DFB8
> =5LJg
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>




Back to the top