There is a need to implement a multiple inheritance in spring beans to avoid duplication of code.
Is there any ways to do it?
There is a need to implement a multiple inheritance in spring beans to avoid duplication of code.
Is there any ways to do it?
neither spring nor java does support multiple inheritance. You could provide your own extension to the current mechanism (a single parent) instead of the default, but that would involve writing your own Beanfactory/ApplicationContext and/or BeanDefinitionParser.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
I know itneither spring nor java does support multiple inheritance
But maybe it can be done by means of AOP?