aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
Similar Threads
AOP, Calling class method that actually doesn't belong to that class
Spring MVC AOP Logger
unable to call AOP method
Spring AOP program not running as expected
Not able to test AOP using AspectJ