Forums Register Login

Using a business delegate within the class diagram for assignment

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks Marcelo
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 956 times.
Similar Threads
Procedure Oriented or Object Oriented approach in session bean?
Question regarding Business Delegate, Stateless Session Bean and Entity Bean in SCEA Part 2
Business Delegate/Session Facade Question
Club Business Delegate with Command Pattern, pros-cons
Representation of SessionBeans in UML Sequence Diagrams
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:28:37.