Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BusinessDelegate pattern

 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all scea users,
I have a doubt about the BusinessDelegate pattern.
I have implemented it to search route flights (Prepare Itinerary).
Should I implement with the Service Locator Pattern ? or the BusinessDelegate contacts directly the Service (holding the Lookup Service)?

In the latter scenario the objects in the sequence diagrams are
UserUI---Business Delegate---Segment---Flight

Thanks
Francesco
 
Lars Behnke
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is nothing wrong with using the ServiceLocator Pattern in combination with BusinessDelegate. In fact, I did the same.
 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lars,
thanks for your reply.
So you agree the "prepare itinerary" sequence should be like this:

ClientUI->BusinessDelegate->Service Locator->Segment->Flight

do you agree ?
Thanks
Francesco
 
Lars Behnke
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Francesco,
The ServiceLocator should be independent of any business classes,
for instance:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic