I am creating multiple bean instances of a class with different property values in spring configuration. For example:
<bean id="myBeanA" class="MyClass">
<property name="identifier" value="A"/>
</bean>
<bean id="myBeanY" class="MyClass">
<property name="identifier" value="B"/>
</bean>
I am new to Spring framework and I am just curious to know the pros and cons to doing this.