I'm trying to write a standalone Spring app, and I just can't get the afterPropertiesSet methods of IntitializingBean beans to get executed. This is what my main app does:
Resource resource = new FileSystemResource("config/spring-config.xml");
XmlBeanFactory bf = new XmlBeanFactory(resource);
won't this by default also initialize beans that implement the required interface? Is there anything else I need to do for that to happen?
Thanks.


Reply With Quote