Carsten Ziegeler wrote:
Leszek Gawron wrote:
It would be even better if the main component wouldn't have the processor passed to. Instead we could make it BeanFactoryAware and allow it to find all beans implementing PropertyProvider in context.
I implemented it slightly different now :) The implementation now
searches for one bean
defined in the application context under the bean name
PropertyProvider.ROLE.

At this point, we can't search for all implementations of this interface
in the application context as this would force Spring to instantiate
FactoryBeans. And then property replacements for FactoryBeans would not
work anymore as they would be applied later.
One more question: why does the root context gets singletons pre-instantiated two times? One time at container start and second time after first request. I can post revelant log entries if you like.

--
Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Reply via email to