Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Home  RSS feed

 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

When create EJB object from EJB Home, which design pattern it uses?
Abstract factory or Factory method?

Thanks!
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Factory Method. Abstract Factory is based on an interface factory that all implementing factories use.

The Create Method is a Factory Method. No the interface above that could called an Abstract Factory. But since you are talking specifically about the create method, that part is Factory Method.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!