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

Using a business delegate within the class diagram for assignment

 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Support I have a stateless session bean in my class diagram. My controllers are decoupled from the stateless session bean via the use of a business delegate. If the session bean exposes operations/methods: oper_1,...,oper_N - do people think it is overkill to have the same method names in the delegate. Personally, think it makes things look very cluttered

Thanks
Joe
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a similar issue. But the fact is that a business delegate shields clients from business services, so the methods may or may not have the same name. It may look cluttered / redundant, but it's not wrong. E.g. you may have a method in your BD named fetchUser(Long id), which calls a session bean method named searchUserById(Long). Or it may have the same name. Depends on your naming convention and if you like the adopted approach.
 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marcelo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic