[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to capture the end of a J2SE program

On Sun, Jan 17, 2010 at 11:51 PM, FraGMenT <poemcompiler@xxxxxxxxx> wrote:
> The main problem is that I don't really know how the program is going to be
> terminated because my aspect is going to be used with different programs,
> through Load Time Weaving

You can use regular Java SE code for that:

http://weblogs.java.net/blog/2004/05/09/shutdown-hooks

Regards,
Michael Nascimento Santos
https://genesis.dev.java.net/
https://jsr-310.dev.java.net/