[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
|
- From: Michael Nascimento <misterm@xxxxxxxxx>
- Date: Sun, 17 Jan 2010 23:58:55 -0300
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CiYwVv/bFIlQ5hiK5WT7xq6LkP6ZVI9RPi3ARXmWpmU=; b=rWxYOdGg/SlKr1tJY0o5zojDR0t21NrQUTdsXIfrgGDYhH/yEFi+ikI9xkbO+wShhB ztQlz08bMbIJymDrcjaxGzAPSFjFDB3Tn05fiAQwc8HE+4HhWDNAP9mwCLB+/0aqxeSY y61TKiLQZBrD3B4GysYfo++iJDfkZ3FDP+iCM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oDzrqJUmK7hH2L3cIr6yYtgM4QFhDCZ9bHZ9N2nZFh4FPW8H6dacJ9XY3W2XsWxw7b m4lZ3x0Yk8nbdxHd2QK2D9/A1JH/BkAMtiUJ4gZDIzfxv7RC6iN07Vv313s42AXD5i/L d1GzJKJz3aI9nAi4xdT3ezSASbKs9gv+UoBTM=
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/