posted 13 years ago
This simple enough if you know how to create and define bean definition in your configuration file. Simply you just define all child class that you have and inject in the parent bean that you created with i.e "<constructor-arg ref="childClass1"/>".
From "MyClass1" you need to declare all child class reference variable and pass all ref variable in the constructor public MyClass1() similar what you already did.
Start from there and show us what you've done, I'll walk you through from there. Feel free post any question that you might have...
OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."