Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > c# > november 2009 >

c# : difference between plugin pattern and factory pattern


DAXU
2/25/2008 8:57:49 AM
Hi,

I am bit confused about the differences between plugin pattern and
factory pattern. Can someone explain the differences?

Many Thanks

Fredo
2/25/2008 5:52:59 PM
Which "plugin pattern"? I assume by factory pattern, you're referring to the
one described in Design Patterns by Gamma, et. al. It's certainly a pretty
standard design pattern. In fact, I think most of the patterns from that
book are pretty much "industry standard." But there isn't, as far as I know,
any single Plugin Pattern, unless there's a specific one you're referring
to. Without knowing which pattern you're referring to, I don't know if
anyone can answer your question.


[quoted text, click to view]

sloan
2/26/2008 9:57:08 AM
I ~~think

Factory Pattern
Plugin Pattern
and
Provider Model
http://aspnet.4guysfromrolla.com/articles/101905-1.aspx
http://www.google.com/search?source=ig&hl=en&rlz=&q=Provider+Model

are about the same thing.

Now, there is a difference between the Simple Factory Pattern, and the
Abstract Factory Pattern.

But, yeah..you're gonna need to post a link or exact info about your "Plugin
Pattern".....because I'm not sure about that one.



[quoted text, click to view]

Perumal Babu
11/19/2009 10:05:05 PM
The difference between the plugin and factory is that the plug is cofiguration driven. But Factory is code driven. In a factory you normally have a condition statement that decide which instance to create.

From http://www.developmentnow.com/g/36_2008_2_0_0_1051360/difference-between-plugin-pattern-and-factory-pattern.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button