[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[aspectj-users] Applying @DeclareParents to annotated classes
|
- From: Scott <aspectj-users@xxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 16:06:11 -0700
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type; b=kgUfFG2HlpwNPvpvtbza9n6+7mTBhO2RXh5LlB5bJJEVGFaH9HkGwRRC4IGxf6gIEkbtE5K7HUwY6/U1yGaFRPMztyZkjmTKYHMbtkUdlsufXGozJK4++F5PzNzywcUvyoFx0mlGZnoJg+sfayR4WtKnRgYzg90QKbxdxIVNXPw=
I am having trouble with this. I am wanting to declare a parent on any class that has and @Audit annotation on it. Here is my code:
======================================================================
@DeclareParents(value="@Audit *.*",defaultImpl=
ApplicationContextAwareImpl.class)
private ApplicationContextRetriever implementedInterface;
======================================================================
I have tried many varients of value="@Audit":
1. @Audit *.*
2. @Audit com..logic.*
3. @Audit com.company.somepackages.logic.Reader
These
start working only when I take the annotation off. The last two in
particular are specific to classes that would probably be using the
annotation. However, I would like to match any class that has the
@Audit annotation, regardless of where it is located. The idea is that
auditing will happen on any class that has the @Audit annotation on the
class and each method to audit. But I cannot get this to work.
-Scott