I see the print line in the console as: Inside performance.
I do not see "take seat" being written in console, before "Inside Performance" I do not see "applaud" getting written in console either.
As such, Performing.perform() method gets executed. But the take Audience.takeSeat() method does not get executed before Performing.perform(). Audience.applaud() method does not get executed after Performing.perform() either.
Dean Pullen
Ranch Hand
Joined: May 30, 2003
Posts: 56
posted
0
An old one but found via google when I was searching for the same thing.
I hadn't declared my aspect as a bean within the config file (or used @Component) so it wasn't scanned.
However, you appear to have missed @Aspect at the top of your Audience class.
@Aspect
public class Audience { .. }
subject: AOP in Apring 2.5 - Declare Aspects with AspectJ annotations