This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

factory or abstract factory?

 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Home interface is using factory or abstract factory pattern for EJBObject? what pattern is using between Home interface and EJB beans?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be the Factory Pattern.
abstract factory is more towards a bunch of classes being created. It can also produce different Factory classes form that one factory.
For instance a Factory of OS GUI Objectd. You pass the OS String and it returns a factory of GUI Objects for that OS.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic