wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes AOP - Getting a local variable from the Caller program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "AOP - Getting a local variable from the Caller program" Watch "AOP - Getting a local variable from the Caller program" New topic
Author

AOP - Getting a local variable from the Caller program

Ingudam Manoranjan
Ranch Hand

Joined: Jul 31, 2006
Posts: 48
Is it possible to get the a variable from the Caller program and use it in the Advice? I am using aspectJ as of now and the code looks like given below:


I want to add Preprocessing beforethe Service Call.


I want to be get the cachmanager from the Command. Is it possible using Aspectj? or any other AOP implementations.
Ingudam Manoranjan
Ranch Hand

Joined: Jul 31, 2006
Posts: 48
A wormhole pattern [AspectJ in Action] solved the problem.
 
wood burning stoves
 
subject: AOP - Getting a local variable from the Caller program
 
Similar Threads
AOP, Calling class method that actually doesn't belong to that class
Spring AOP program not running as expected
unable to call AOP method
Not able to test AOP using AspectJ
Spring MVC AOP Logger