• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cohension - Service Locator  RSS feed

Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!