What is the best aproach to create a non-static inner class in Spring?
class A {
public class B {}
B b;
public void setB(B b) {this.b = b;}
}
this seems to work, but i want to avoid the need for a constructor argument:
<bean id="a" class="A">
<property name="b">
<bean id="b" class="A$B">
<constructor-arg ref="a"/>
</bean>
</property>
</bean>