|
From: Alef A. <al...@jt...> - 2004-12-07 20:20:20
|
I think the third option is what the SimpleUrlHandlerMapping also does = and if I'm not mistaken is also done in other places in the framework. = Personally, I'd like to have as much checking of bean references as = possible and since most people will use singletons only anyway, I guess = it's better to use bean references than specifying bean names. =20 It should be clear form the documentation however how things work of = course. =20 alef =20 ________________________________ From: spr...@li... on behalf of = Rob Harrop Sent: Tue 12/7/2004 2:15 PM To: spr...@li... Subject: [Springframework-developer] Spring JMX Plans All, I am looking at ways to support lazy-init and prototype beans in Spring JMX. The biggest issue is that in order to register a ModelMBean you need to supply the managed resource instance, in this case the bean up front. An obvious solution to this is to provide an AOP interceptor for lazy-init beans that can be passed to the ModelMBean as the managed resources but which only inits the bean when the first method is = invoked. This leads me onto the main point which is: what is the best to go about applying this interceptor. I see three solutions: 1. Have the user create the proxy manually. 2. Modify JmxMBeanAdapter to accept a Map of bean names instead of a Map of beans and use the BeanDefinition to determine if the bean is lazy-init or not, applying the AOP interceptor dynamically as required. 3. Modify JmxMBeanAdapter to accept a Map of beans OR bean names and then decide dynamically how to proceed. What are our thoughts? Rob ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |