File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Elasticsearch in Action this week in the Big Data 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: 17260

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
I agree. Here's the link:
subject: factory or abstract factory?