Results 1 to 3 of 3

Thread: Run time advice for non spring managed beans

  1. #1
    Join Date
    Sep 2004
    Posts
    602

    Default 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 ?

  2. #2
    Join Date
    Apr 2006
    Posts
    110

    Default

    Yes you can or create this nodes with a ProxyFactory or a simple none intrusive approach that is using RegExp Pointcuts

    http://static.springframework.org/sp...ntcuts-aspectj
    Si em veiessin caminar per sobre un llac, dirien que no sé nedar.
    http://alexsotob.blogspot.com

  3. #3

    Default

    Quote Originally Posted by Paul Newport View Post
    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 ?
    What do you mean by "non spring managed beans"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •