This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: AOP - Getting a local variable from the Caller program
 
It's not a secret anymore!