Search code examples
design-patternsprovider-model

Is the Provider Model using the Factory pattern?


Is the Provider Model really just the Factory pattern?


Solution

  • 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.