RE: [aspectwerkz-dev] introducing mixins by annotation.
"Jonas Boner" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Chris. You should write it like this: @Implements within(@Identity *..*) I can't garantuee you that it will work though since this is something that we have not tested yet. Please get back to me if it works/not works. I'll update the docs with this later. Thanks. /Jonas > -----Original Message----- > From: christoph sturm [mailto:chrisml-Ws/[email protected]] > Sent: Tuesday, June 29, 2004 12:58 PM > To: [email protected] > Subject: [aspectwerkz-dev] introducing mixins by annotation. > > Hi! > > I am using aspectwerkz3 cvs, and i want to mixin an interface > when a class has an annotation. > > the class looks like this: > /** > * @Identity > */ > public class IdentifyableClass > { > > } > > i have identity defined as custom annotation, and now i want > my aspect to mixin an interface, but i dont know how to define it. > > this is my test-aspect: > /** > * @Aspect perInstance > */ > public class IdentifyableAspect > { > /** > * @Implements @Identity <== i dont know what exactly > to write here > */ > public class IdentifyableImpl implements Identifyable > { > long id; > } > } > > sorry if this is documented somewhere, but i found > annotations only used for advices in the docs. > > regards > chris >