Factory Post-Processors and setBeanID()

0 views
Skip to first unread message

Tony Nelson

unread,
Sep 29, 2009, 3:33:37 PM9/29/09
to ColdSpring-Users
If you define a bean as being a factory post-processor, the bean
factory will create the post-processor, try to call setBeanID() on it,
then call postProcessBeanFactory(this). Looking at the examples of
factory post-processors, it looks like setBeanID() should be passing
in a string. However, inside processFactoryPostProcessors(), the bean
factory appears to be passing in the bean itself.

Should line 662 in DefaultXmlBeanFactory be updated from <cfset
bean.setBeanID(bean) /> to <cfset bean.setBeanID(beanName) /> or
<cfset bean.setBeanID(variables.beanDefs[beanName].getBeanID()) />?
Reply all
Reply to author
Forward
0 new messages