Announcement Announcement Module
Collapse
No announcement yet.
multiple inheritance in spring beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • multiple inheritance in spring beans

    There is a need to implement a multiple inheritance in spring beans to avoid duplication of code.
    Is there any ways to do it?

  • #2
    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.

    Comment


    • #3
      neither spring nor java does support multiple inheritance
      I know it

      But maybe it can be done by means of AOP?

      Comment

      Working...
      X