Announcement Announcement Module
Collapse
No announcement yet.
Interface injection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Interface injection

    Does spring support interface injection? If so can you please send me an example with brief comments

    Thanks in advance

    Regards,
    Moorthy

  • #2
    Originally posted by gmoorthy.lp View Post
    Does spring support interface injection? If so can you please send me an example with brief comments

    Thanks in advance

    Regards,
    Moorthy
    Have you checked spring reference?

    Comment


    • #3
      Hello Denis,

      Thanks to reply my query. I didn't check spring reference. I read from the below link that spring doesn't support and using "autowire" we could achieve it partially. But tha bean autowire is not so advisable. He also raised one query that Perhaps AutowireByInjection should be added to core Spring?

      http://opensource.atlassian.com/conf...tion+to+Spring

      Still I am not sure using bean "autowire" we can achieve interface injection. Or Does spring come with any alternative way to achieve interface injection?

      Comment


      • #4
        I don't see any significant difference between the interface injection described by Fowler and spring autowring. Feel free to read more about spring autowiring at the reference - Chapter 3. The IoC container

        Comment

        Working...
        X