2

Is the Provider Model really just the Factory pattern?

Alexander Abakumov
  • 13,617
  • 16
  • 88
  • 129
Blankman
  • 259,732
  • 324
  • 769
  • 1,199

1 Answers1

1

According to this,

Providers are a subclass of the ProviderBase class and typically instantiated using a factory method.

So I would say no, they're not same thing, but a factory is used in implementing a Provider.

You can also follow this link and Ctrl-F for "factory" to see how the pattern is used in the provider model.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880