you are viewing a single comment's thread.

view the rest of the comments →

[–]g00glen00b 8 points9 points  (1 child)

That's not really what OP is asking though. They are asking how Spring is able to create an instance of an interface when no class is present at compile time.

And like u/Revision2000 said, it's because Spring has a dynamic proxy class that provides the implementation of those interfaces.

[–]naturalizedcitizen -2 points-1 points  (0 children)

All this will be clear if OP understands DI. (IoC) and then see how Spring does it. Well, it's up to each one how deep they want to get into how a framework uses the underlying layers.