Re: [aspectj-users] Defining pointcuts or aspects within a normal java class

2008-10-29 Thread Simone Gianni
Hi Piers, you can define pointcuts in normal java classes, and then use it from aspects outside that class, as long as they are public or of a suitable access type (like, package protected and the aspect in the same package). You can also define an aspect as an inner class, so that the code is in a

[aspectj-users] Defining pointcuts or aspects within a normal java class

2008-10-29 Thread Piers
Hi I am a total newbie to AspectJ, so apologies in advance if this question is stupid. Quick question - Is either of the above possible and how? If more explanation is required then read on - I want to create an aspect for unit testing that can be used to replace method call return values