Re: Understanding Abstract Factory Pattern

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I almost understand that.

Are there any tutorials you know of that illustrate this concept?

Thanks,
Ron


"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:1179232796.247443.75550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On May 15, 1:21 pm, "RSH" <way_beyond_o...@xxxxxxxxx> wrote:
I am a fairly seasoned developer and have recently started looking at
software design patterns. I am starting with the Abstract Factory
Pattern
and was wondering if someone could help me understand where I might use
this
Pattern. I get the general concept but I am having a hard time
converting
that concept into where I might use that in a real world scenerio for a
business application or web development project.

Suppose you had encapsulated your data access into an interface, and
had implemented that interface for Oracle, SQL Server etc.

The abstract factory pattern would give you a central factory to call
which would in turn call the appropriate concrete factory depending on
configuration.

At least, that's the way I understand it.

Jon



.



Relevant Pages

  • Re: Making a generic Parameter class
    ... SqlParameter is an implementation of an 'Adapter' pattern. ... using these objects without concern for which database lies underneath it. ... What .Net doesn't do is provide you with an abstract factory. ...
    (microsoft.public.dotnet.general)
  • Re: Understanding Abstract Factory Pattern
    ... There is a difference between the Simple Factory Pattern ... The Abstract Factory is really like a runtime switch that instntiates the ... I get the general concept but I am having a hard time ... scenerio for a business application or web development project. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Diff b/w factory pattern and strategy pattern
    ... >the design goals that lead you there. ... I'd say that abstract factory is a strategy used for creating ... Hopefully it was code that led him to the pattern. ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: Understanding Abstract Factory Pattern
    ... The Abstract Factory is really like a runtime switch that instntiates the ... and the underlying classes. ... I am starting with the Abstract Factory Pattern ... scenerio for a business application or web development project. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to understand the role of Service?
    ... say that I know of a service interface that exposes methods for logging. ... as a consumer I would still need to acquire an implementation of that interface. ... "EventLogService" that implements the logging service interface I could create an instance of that class, however the provider ... but the ASP.NET provider pattern is an example of an abstract base class with configuration. ...
    (microsoft.public.dotnet.general)