Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ASPECTJ: modifying methods in another class using a pointcut