File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes what's the factory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "what Watch "what New topic

what's the factory?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
as we can seen,there are a lot of "factory" in the java,such as InitialContextFactory,KeyManagerFactory,.........
so many factories have confused me,but i think there must be some common meaning withing the factories,and there must be differences between the factories and other classes,who can help me?
thank you
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Factory method is just a fancy name for a method that instantiates objects. Like a factory, the job of the factory method is to create -- or manufacture -- objects.

for more detail refer to

Sharing is learning
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

This question was cross-posted all over JavaRanch.

An IDE is no substitute for an Intelligent Developer.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Continue the conversation here.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Consider Paul's rocket mass heater.
subject: what's the factory?
It's not a secret anymore!