Results 1 to 3 of 3

Thread: Why @Autowire an interface ?

  1. #1
    Join Date
    Aug 2011
    Location
    UK, Leeds
    Posts
    26

    Default Why @Autowire an interface ?

    Hi all
    I have a very general question, In Spring why do we Autowire an interface and not implementation class?
    Thank you
    Zed

  2. #2
    Join Date
    Aug 2011
    Location
    UK, Leeds
    Posts
    26

    Default

    Anyone ???

  3. #3
    Join Date
    Sep 2012
    Location
    new york
    Posts
    10

    Default

    Hmm friend as far as I am concerned it is an interface rather than a class so that you can wire it in a different implementation, that is not possible with class.
    .

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
  •