I have the following:
List<Color> acceptableColors;
Using Spring, would it be best to instantiate this list this way:
<bean>
<list>
<value ref="orange" />
<value ref="yellow" />
....
</list>
</bean>
Or, is there a way to do a register scheme, where we use Spring to perform the following Java code:
ColorRegister.register(orange)
ColorRegister.register(yellow)