IntelliJ Java IDE
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Cohension - Service Locator Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Cohension - Service Locator" Watch "Cohension - Service Locator" New topic
Author

Cohension - Service Locator

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 172
Hello,
I'm reading the Head First Servlets & JSP book. Page 779 states that the Service Locator is based on: hiding complexity and separation of concern. Couldn't the Service Locator also be based on cohension too? Reading page 743, Cohension is described as "the degree to which a class is designed for one, cohesive, task or purpose. This to me seems to fit the Service Locator? The Service Locator performs registry lookups...isn't this a cohesive pattern? Would someone please clarify to help me understand how the Service Locator isn't? And also what about Front Controller, cohension seems to fit since it's purpose is to navigate an app's request to the appropriate place?

Thank you in advance for your feedback.
 
 
subject: Cohension - Service Locator
 
Threads others viewed
Best Practice For Accessing EJB's
ServiceLocator in Component Diagram
About Pet store components
Difference between Session Facade and Business Delegate pattern
design patterns
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com