I have requirement to inject dependency in abstract superclass using spring framework.
class A extends AbstractClassB{
private Xdao daox ;
...
p
You can create an abstract bean definition, and then "subtype" that definition, e.g.
Strictly speaking, the definition for b
doesn't even require you to specify the class, you can leave that out:
However, for clarity, and to give your tools a better chance of helping you out, it's often best to leave it in.
Section 3.7 of the Spring Manual discusses bean definition inheritance.