We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ca205c commit 9512f3eCopy full SHA for 9512f3e
service-locator/README.md
@@ -33,6 +33,13 @@ improves the performance of application to great extent.
33
* lookups of services are done quite frequently
34
* large number of services are being used
35
36
+## Consequences
37
+
38
+* Violates Interface Segregation Principle (ISP) by providing pattern consumers with an access
39
+to a number of services that they don't potentially need.
40
+* Creates hidden dependencies that can break the clients at runtime.
41
+* Limits object composability by stopping the clients to specify needed dependencies for different objects instantiation.
42
43
## Credits
44
45
* [J2EE Design Patterns](http://www.amazon.com/J2EE-Design-Patterns-William-Crawford/dp/0596004273/ref=sr_1_2)
0 commit comments