|
AbstractFactory is typically implemented through
FactoryMethods but just remember that it can
also
be implemented with other virtual constructor methods like Prototype as
well,
-
Mike
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vernekar, Pralhad (IndSys, SalemVA) Sent: Thursday, October 30, 2003 9:05 AM To: 'Pablo Schor'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [patterns-discussion] Abstract Factory vs. Factory Method Hi
AbstractFactory is a collection of Factory Methods.
For
example,
class
WindowFrameworkCreator
{
Component getWindow();
Component getDialog();
Component getScrollBar();
}
class
WindoFrameworkCreator is an AbstractFactory and getXXX methods are Factory
methods.
Another example of Factory Method
class
RDBMSConnectorFactory
{
RDBMSConnector getConnector ()
{
// return either Oracle or SQL Server
Connector - by reading conf file
}
}
regards
Pralhad
|
Title: Message
- RE: [patterns-discussion] Abstract Fac... Russell Dodd
- Re: [patterns-discussion] Abstrac... Eduardo Franco
- RE: [patterns-discussion] Abstrac... Vernekar, Pralhad (IndSys, SalemVA)
- [patterns-discussion] Pattern... Mike Beedle
- [patterns-discussion] Pat... pg . bhat
- Re: [patterns-discuss... Yves Roy
