[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Applying @DeclareParents to annotated classes
|
I've had a look ... and it is a bug ... I have a fix and it should be available later this afternoon. When it's done, you will be able to do:
@DeclareParents(value="@Audit *",defaultImpl=
ApplicationContextAwareImpl.class)
private ApplicationContextRetriever implementedInterface;
Andy.
On 29/03/06,
Scott <aspectj-users@xxxxxxxxxxx> wrote:
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
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users