This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes ASPECTJ: modifying methods in another class using a pointcut Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ASPECTJ: modifying methods in another class using a pointcut" Watch "ASPECTJ: modifying methods in another class using a pointcut" New topic
Author

ASPECTJ: modifying methods in another class using a pointcut

Carlos Nieto
Greenhorn

Joined: Mar 10, 2011
Posts: 1
I've been looking for way to modify a method from another class by using an aspect class, but I really don't know how to do that...

Is there a way to intercept the method call and replace what is in the method with something in my advice?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ASPECTJ: modifying methods in another class using a pointcut