
|
If you were logged in you would be able to see more operations.
|
|
|
|
An abstract parent bean that contains an inner bean causes a progressive slowdown as more beans of that type are instantiated. See the enclosed unit test.
The slowdown was traced to BeanDefinitionValueResolver.adaptInnerBeanName() looping, trying to create a new unique bean name. It seems that the old inner bean names never get cleaned out of DefaultSingletonBean.dependentBeanMap.
|
|
Description
|
An abstract parent bean that contains an inner bean causes a progressive slowdown as more beans of that type are instantiated. See the enclosed unit test.
The slowdown was traced to BeanDefinitionValueResolver.adaptInnerBeanName() looping, trying to create a new unique bean name. It seems that the old inner bean names never get cleaned out of DefaultSingletonBean.dependentBeanMap.
|
Show » |
|
So as a workaround for this problem - and an actual recommended way of defining bean definitions for @Configurable - mark such template bean definitions as scope="prototype"!
That said, I'll still try to revise things in order to make such bean definitions work even when not explicitly marked as prototype.
Juergen