PDA

View Full Version : Software Factories resources



curlious
12-20-2004, 10:19 PM
Can anyone point me to a good tutorial on factories. Google isn't helping.

anonytmouse
12-20-2004, 10:34 PM
Google("factories") (http://www.google.com/search?q=factories) leads to The Case for Software Factories (http://msdn.microsoft.com/architecture/overview/softwarefactories/default.aspx?pull=/library/en-us/dnmaj/html/aj3softfac.asp).

curlious
12-20-2004, 10:44 PM
I saw that not quite what I'm looking for. I'm looking for a tutorial on factories used in inheritance hierarchies and with the use of abstract classes. I have a glimmer taken form Barjne Strostrups C++ Programming Language Chapter 12 Localizing Object Creation and am looking for further resources. ps free resources

curlious
12-21-2004, 04:50 AM
I found the information I was looking for. Reading further about Design Patterns I found that one of the patterns is the Abstract Factory Pattern. This pattern essentialy controls the creation of a family of class depending upon the needs of a client.

I am considering how to use this in conjuction with a bridge pattern to create the appropriate implementation for an abstract class Beverage whose implementation uses an abstract class BeverageUserInterface as part of the bridge pattern. My idea is the concrete implementations of BeverageUserInterface which could be dialogs or console i/o or other widgets etc would be created by a abstract factory BUISelector. This may be a bit of overkill but somehow the client must specify the way Beverages will display themselves, i.e. which concrete implementation to compose the Beverage class with, and read data.

I also have am creating a beverageMaker class that creates the various types of beverages depending on type specified and returns a *Beverage don't think this is appropriate for the use of a factory. I am still iffy on both the bridge and factory patterns and will need a while to digest what I have read

.