KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Coming from a C++ background I have to master the complexity of the Java world and its frameworks. Looking at the spring framework for DI I am finding it difficult to believe that I have to make each setter function which will be subject for DI public. Doesn't that requirement break the principle of information hiding? Of course I want spring to be able to set some private parts of my classes, but I certainly do NOT want every client class to be able to do the same. What am I missing here?
Tags (comma-separated)
Save Edits
Cancel