| Re: [aspectj-users] newbie AspectJ questions |
| Adrian, First, I'd like to thank you for the detailed reply. I mean *huge* thanks. The sad fact is that I'm not able to spend nearly as much time as I'd like learning the details of AspectJ, and from what I'm reading, once I have this one mechanism set up, that's all I'm going to need. I was not looking forward to spending the next week or two tracing execution and combing through the AspectJ Compiler manual. To clear up some of the uncertainty in my post, yes I'm using AspectJ 1.5; it was required because I make heavy use of generics in my code. I've got a customized version of the maven plugin (still using Maven 1.0.2, and the latest AspectJ plugin for it uses 1.2.1) and I'll probably send the patch to the people who make it once I make sure things are working. I'm wondering if the lazyTjp warnings might be an artifact of the plugin. It's using an ant task (I've replaced most of the variable properties with their current settings): <ant:iajc fork="false" incremental="false" XnoWeave="false" Xlint="warning" destDir="${destDir}" sourceRootCopyFilter="${maven.aspectj.sourceRootCopyFilter}" debug="false" emacssym="no" verbose="false" source="1.5" target="1.5" time="false"> I'm assuming that if I change Xlint to "error", most of those warnings will go away? I can't test that at the moment, but I'll give it a try in a few hours. And yes, AclSecurable is an interface. All of the domain objects that can be secured with Access Control Lists will be tagged with that interface and the security aspect will only be valid for those objects; the interfaces that define each type of domain object extend AclSecurable, and are then implemented in turn by the domain object classes. Fortunately, they are all in the same package, and now that I understand a little more about the pointcut matching, I should be able to whittle it down to just the classes that need it, and probably down to the methods that need it. Again, thanks! If I run into any other problems, I'll reply again, but hopefully that'll cover it. Mark On Jan 31, 2006, at 2:46 AM, Adrian Colyer wrote: To try and explain some of what's going on for you here... |