I don't believe it's possible to add a member to multiple classes using a single inter-type declaration statement, but you can use an inter-type declaration to insert a field in the interface itself (you can also provide it with accessor and mutator methods for proper encapsulation). See the aspectj programming guide (http://www.eclipse.org/aspectj/doc/released/progguide/language-interType.html) for details.
regards, - Gijs On Tuesday 16 October 2007 13:02:42 Chrys wrote: > Let's say I have an interface and some classes that implement it. Is it > possible to insert a field to the classes that implement the particular > interface using AspectJ? > > Regards
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
