|
From: Rod J. <rod...@in...> - 2003-09-24 19:50:02
|
> Ok, I admit, I didn't think hard enough ;-) > > afterPropertiesSet() is called after all properties are set. > setApplicationContext() is called when getting a bean from the Context. > > So I'm basically not allowed to do anything related to the > ApplicationContext in my afterPropertiesSet() method??? Yes. Sorry I didn't remember and point this out earlier. Configuring the ApplicationContext layer is a later stage of configuration than configuring the BeanFactory layer. We should document this more prominently though. (I seem to remember putting something in Javadocs). So if you do everything that depends on the AppContext is setApplicationContext() you should be OK. |