Can Spring bean be a reference to another bean? It doesn't seem to work:
<bean id="player1" class="some.package.Player" />
<bean id="player2" ref="player1" />
If this is possible, is it useful? So far, I was thinking that every bean must represent a unique object, but some idea came to my head: what if I had a Singleton class called e.g. Sun with a "public static Sun getInstance()" method and I would make two beans being the same object?
<bean id="sun1" class="some.package.Sun" factory-method="getInstance" />
<bean id="sun2" class="some.package.Sun" factory-method="getInstance" />