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

Doubt about EJBHome(design patterns)

 
Ramesh Talwar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Does EJBHome in EJB uses Factory pattern or
Abstract Factory ?
I think it uses Factory pattern, because
Abstract factory is one who returns factory object.
and EJBHome returns EJBObject which is not factory object.
Am I on right track or wrong.
Thanks in advance.
 
Ramesh Talwar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys
I don't know whay nobody is responding to this post.
Is my question confusing.
Please help me out.
Thanks
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a Factory Method pattern or Factory as you call it

I think the EJBHome is an example of a Factory Method pattern as opposed to a Abstract Factory pattern.
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree it is factory method not abstract factory. Factory method is a trivial case of abstract factory which is used to produce families of related objects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic