<beans>
<bean id=".." class="...">
...
</bean>
...
<beans>
So why does this tags are named <beans> and <bean>? This seems to be misleading.
In Spring one way of binding objects is using the beaness of java classes. But that is not that only way to bind them together, constructor can be used to bind objects. So if configuration file used tags as follows, it would be more meaningful.
<objects>
<object id=".." class="...">
...
</object>
...
<objects>
Seems it is used only to express that beaness can also be used in initialization. Would you agree? May be we are not seeing the exact reason. This is completely open for discussion.
0 Response to "Use "object" instead of "bean" in Spring Configuration XML"
Post a Comment