Dec 5th, 2006, 07:42 AM
Run time advice for non spring managed beans
This is a cross post, as I put it originally in the core forum.
I have a service that loads an object that models a hierarchical tree (i.e. a Tree
object, with Nodes on it).
Once the object is loaded I call a method on it and it recurses through nodes, calling methods on the nodes.
Say that each node has a method called "process()" on it.
Is there any easy way of adding advice at run time to each of these nodes, so that I can add logging before each call to process() or any other method I want to run on the node ?
Dec 11th, 2006, 01:19 AM
Yes you can or create this nodes with a ProxyFactory or a simple none intrusive approach that is using RegExp Pointcuts
Dec 11th, 2006, 07:49 AM
What do you mean by "non spring managed beans"?
Originally Posted by Paul Newport