IntelliJ Java IDE
The moose likes Spring and the fly likes Aspect within another aspect Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Aspect within another aspect" Watch "Aspect within another aspect" New topic
Author

Aspect within another aspect

Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Can we have an AOP method interceptor itself being intercepted by some other AOP interceptor class?


Thanks and Regards,
Suhas
http://www.xplore-java.blogspot.com/
Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

I bet you enjoyed the movie Inception


[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Yes I did like the movie, it was awesome.
Well my question is something weird, I guess i have to figure out a work around for situation
Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

Apart from the joke, I don't think that you can. But I've never dug deep enough to be 100% sure about this... Thinking about it, the proxied object whose aspect is applied to will call the interceptor instance, not a proxy of the interceptor. I don't think it's smart enough to make a proxy of the interceptor and assign it to the proxy of the first caller.
 
 
subject: Aspect within another aspect
 
Threads others viewed
DI and AOP
AOP
Spring MVC AOP Logger
AOP
Why is the Interceptor pattern != AOP
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture