This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AOP - Getting a local variable from the Caller program