• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AOP - Getting a local variable from the Caller program

 
Ingudam Manoranjan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A wormhole pattern [AspectJ in Action] solved the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic