Re: [aspectj-users] Problem in my first aspectJ

2015-09-07 Thread Frank Pavageau
You're trying to use the AspectJ integration in Spring -- usually called Spring AOP -- without actually using Spring in your program, which is just a class with a main. You should either use AspectJ directly (by compiling with ajc) or create a full-blown Spring application where the advised class

Re: [aspectj-users] Problem in my first aspectJ

2015-09-07 Thread Alexander Kriegisch
I am afraid you posted your Java class twice, but the aspect not at all. -- Alexander Kriegisch http://scrum-master.de > Am 07.09.2015 um 18:13 schrieb xeonmailinglist : > > Hi, > > I am developing my first AspectJ example, and I want to call an Aspect method > before and after executing a me

[aspectj-users] Problem in my first aspectJ

2015-09-07 Thread xeonmailinglist
Hi, I am developing my first AspectJ example, and I want to call an Aspect method before and after executing a method in another class. Let me give an example. I have in [1] the main class that invokes the |teste1()| method. I want to invoke the methods |setup()| and |cleanup()| in [2] when i