I have a Dao which is not Singleton, if other objetcs extend from him, is singleton or not ? code example
<bean id="dao" class="parentDao"
scope="prototype">
</bean>
<bean id="childrenDao"
class="some.dao.extends.parentDao"
parent="parentDao">
</bean>
the childrenDao is it singleton?
Update: Verified through a test, the scope is also inherited from the parent bean and can be overridden by the child. So in this case childrendDao will be a prototype.
This is what is stated in the reference document:
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-child-bean-definitions