This sounds fairly complex, so forgive me if I've misunderstood something.
What does it mean to have a pluggable life cycle manager *within* the object graph? They generally sit outside of it (eg. a dependency injection container, servlet container or web framework).
For comparison, in JPA, EntityListeners are singletons. An annotation on an entity binds it to a given listener (or vice-versa, I forget), and all calls go to a single instance of that listener.
This may be terribly naïve, but could the root object call the life cycle methods itself? Then the children objects could do the same on their children.
Alternatively, AOP may be of help here. I can't think of any standalone projects to traverse an object graph, though many projects do that, such as JSON libraries.
Moandji
--
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to CTJUG...@googlegroups.com
To unsubscribe from this group, send email to CTJUG-Forum...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
For jobs see http://jobs.gamatam.com/