Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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: 17276

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 - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: factory or abstract factory?
It's not a secret anymore!