• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Builder pattern in business tier

 
rekha Ssharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am Rekha,
In my class diagram i need to show "builder design pattern". But i,m facing problem in mapping the classes and interface present in builder pattern to the Session beans classes.
i know it can be implemented in many ways but i,am thinking of a good approach.
I,m planning to make concrete classes of builder pattern as SLSB and but i,m thinking whether two or more SLSB can implement one interface or not.
Director class is also a SLSB and Product is Entity class.


Anyone who had already done this ,please give me some idea.

And one more thing can a builder pattern will return more than one product

Thank you,
Rekha

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
377
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SLSB are Java classes and can implement multiple interfaces. Which means you can have them implement a common one in addition to the "EJB" interface. However, SLSB stands for *stateless* session beans. Builders have state. How do you reconcile this?
 
rekha Ssharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:SLSB are Java classes and can implement multiple interfaces. Which means you can have them implement a common one in addition to the "EJB" interface. However, SLSB stands for *stateless* session beans. Builders have state. How do you reconcile this?

I think the statefull session bean will do the
the work.this SFSB implement two interfaces,one its business interface second the builder interface.
One more thing i want to know that,do it is mandatory that the concrete builder have pre inilized items or they can be initialized at runtime.
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic