[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Aspect Weaving GlassFish and Errors
|
- From: "Andrew Eisenberg" <andrew@xxxxxxxxxxxx>
- Date: Tue, 23 Sep 2008 21:32:45 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=upXgyOuxZZpn5kITuzn/KXnaK2yq4WdUFnjEzMiSFJs=; b=sJ5BAWQTHv6uDcxvRjDhUJ8px0tJWRRpL2YvvNVNv+KXMM65AnYR8zxWukAsf+spWK gIISMUNa9hy+cKWegvSDojrWy10A+MC9dny9vAPlqOLyz2PWhOZdjwtyFCbmq2PZ1ZZF U5q6RpPUtmtLLEvC7uiUVeCgcLNAW4nsJTnmA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=Vh+5F1WE1LKICNAA12s6eE0fiabnEG/t8SJ3NYetYY4pbKQdsisTdn+aCOpabIr1Nl nXXPCsRxKndi6Hgwfs6B9/s57iDq3OBfrzfa+onh/q3JHoRT4jajsfb2MXC8nMwD8sWx kWDAlno28Kbebdik6tPk3THoIlt1PqIfuQZIc=
That is quite an aggressive aspect that you have there. :-) First,
are you sure that you want to use load time weaving? It tends to be
more difficult to develop LTW aspects because there is no tooling
support for them (so you don't know if it works until you run your
program).
So, you want to trace every single method and constructor execution of
a subclass of com.sun.jbi..*.
execution(* com.sun.jbi..*+.*(..)) && execution(* com.sun.jbi..*+.new(..))
Although, you may really want to advise the initialization of new
classes, rather than the execution of constructors:
initialization(* com.sun.jbi..*+.new(..))
But, as I mentioned, try compile time weaving first to make sure this
is doing what you want it to do.