Results 1 to 3 of 3

Thread: multiple inheritance in spring beans

  1. #1
    Join Date
    Feb 2011
    Posts
    3

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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

  3. #3
    Join Date
    Feb 2011
    Posts
    3

    Default

    neither spring nor java does support multiple inheritance
    I know it

    But maybe it can be done by means of AOP?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •