[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Question about constructor pointcuts
|
- From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
- Date: Wed, 26 Nov 2008 09:20:51 -0500
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=+IOIreNJbJH8N4CLf7aKMGqgY8IUPs5V3sjY/kRYfxE=; b=BjrjiyBP06qJTT9r+otrHYmKnibkJgAEJ+yp596jQsjzYyY/42Xr4tpRl51fnYRGQA wfdsSJ0AkgTlkb1HSGl5GcHYgb47aBhDv1GSZLhZ7K5VkrxjSD/WWSJSYsmuA885nJIc QSdu652q+I1XKX3Tg9I7jSjhDwOFUnhHEtJmI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=cmBRqcAdDzVLePSu5mEsaQRyVHBRDCpHsOKDywLnhqC78t8AcQPfGBEcjmj30I6okj pnIhoJShJxwdDah5TPOFx6DNRRyp02qHPY4h6+x5wWgajw6O2wud1+7viheZMDp7xNDq W9aM09oFlGFCWzr8s6tRGmPYSWu4RJKcbfaW8=
> Why not? After all creating a new object with reflection resolves in invoking
> the null-argument constructor, so why should AspectJ don't trap the
> constructor call?
Because the call is performed implicitly, by the reflection API. AJ
weaves pieces of advice that apply at call joinpoints into the call
side. Now for reflection, how would you want to do that? Obviously you
cannot weave into the reflection API because that's implemented in
native code.
Eric
--
Eric Bodden
Sable Research Group, McGill University, Montréal, Canada
Got an interesting job offer? http://www.bodden.de/hire-me/