permaculture playing cards*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes factory or abstract factory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "factory or abstract factory?" Watch "factory or abstract factory?" New topic

factory or abstract factory?

Robin Zhang
Ranch Hand

Joined: Apr 11, 2002
Posts: 139
Home interface is using factory or abstract factory pattern for EJBObject? what pattern is using between Home interface and EJB beans?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

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.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: factory or abstract factory?
Similar Threads
EJB Home uses Abstract factory or Factory Method?
Design Pattern sample question
here we go again - design patterns from hell
EJB Home interface design pattern
Does HOME Interface represent FACTORY or ABSTRACT pattern?