hello
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 within the factories,and there must be differences between the factories and other classes,who can help me?
thank you
-
what's a "factory"? (2 messages)
- Posted by: zhebin cong
- Posted on: January 25 2002 04:44 EST
Threaded Messages (2)
- what's a "factory"? by joseph yi on January 25 2002 15:52 EST
- what's a "factory"? by zhebin cong on January 26 2002 09:23 EST
-
what's a "factory"?[ Go to top ]
- Posted by: joseph yi
- Posted on: January 25 2002 15:52 EST
- in response to zhebin cong
factories are creational idioms, or in other words, they are used to create objects for you. usually the factories create objects related to a certain interface.
there are different types of factories as well (i.e. factory method, abrstract factory, etc.)
since they are desgin pattern idioms, you can search on google.com for more information (i.e. search 'java factory design pattern')
hope this helps.
-
what's a "factory"?[ Go to top ]
- Posted by: zhebin cong
- Posted on: January 26 2002 09:23 EST
- in response to joseph yi
thank you