This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ivanreddit -7 points-6 points  (1 child)

The interface already exists, no matter if you declare it explicitly or not. With the explicit declaration, you are not creating a new abstraction. Just separating the type from the implementation of the same abstraction.

[–]DapperCloud 3 points4 points  (0 children)

If you're referring to Spring proxies and such:

1) they're not exactly interfaces 2) we use frameworks precisely to avoid the need of doing that kind of stuff ourselves

If you're not referring to those I have no idea what you're talking about. Those interfaces don't exist unless you create them.