VG
Size: a a a
VG
DM
GL
GL
GL
s
AE
GL
A
Class2 {
Autowired dependency1
}
Class1 ext Class2 {
*want to use dependency2*
}
xml: bean class1 property dependency=dependecy2
AE
DC
Class2 {
Autowired dependency1
}
Class1 ext Class2 {
*want to use dependency2*
}
xml: bean class1 property dependency=dependecy2
A
У тебя получается, что бин не просто знает о внутреннем устройстве другого бина, но ещё и модифицирует его внутреннее состояние.
DC
A
DC
A
DC
AG