The Factory Gate Design Pattern

Recently I have added some XML serialization/deserialization code to an object model library that I have been working on.  In order to create the objects a Factory object is used to create the objects.  The library implements the base class and is supplied a delegate that allows the application to supply the objects.

One of my colleages commented that this did not seem to be a Factory object.  This is when I described it as a “Factory Gate”. The idea is that if the object comes out of the “Factory Gate” you don’t care if it was made there or bought in from outside and sold on.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s