Announcement Announcement Module
Collapse
No announcement yet.
Understand how work interfaces in Spring Framework? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Understand how work interfaces in Spring Framework?

    Hello dear Spring Community.

    First of all I want to thanks the Spring that it's existing and help million developers and ppl as well.

    So, I just started to get to know how spring works and have some questions:

    - I'm kind a curious how the interfaces in Spring works, let's pretend that we have the DAO or Service object, most of time is a interface. I did my interface and implement it in some classes, gave my methods of the interface realization and trying to invoke them in my main class, but in my main class I invoke my method from interface instead of invoking the same methods directly from my Service or DAO class. How does it know that it has to invoke the method from my class which implements this method. What is I have alot's of classes which implements the same interface how it's will work. Is this polymorphism??

    As a optional example Application DAO --> DAO support --> Data Access Template --> Persistance Framework --> DB


    Thank you.
Working...
X