2015-06-10 09:53:15 +03:00
|
|
|
Providers
|
|
|
|
=========
|
|
|
|
|
2016-06-08 16:39:53 +03:00
|
|
|
Providers are strategies of accessing objects. They define how particular
|
2015-07-28 01:31:19 +03:00
|
|
|
objects are provided.
|
2015-06-10 09:53:15 +03:00
|
|
|
|
2015-07-28 01:31:19 +03:00
|
|
|
Every provider is callable (implements ``__call__()``). Every call to provider
|
|
|
|
instance returns provided result, according to the providing strategy of
|
|
|
|
particular provider.
|
|
|
|
|
|
|
|
Current documentation section consists from description of standard providers
|
|
|
|
library and some useful information like overriding of providers and writing
|
2015-11-23 20:09:21 +03:00
|
|
|
of custom providers.
|
2015-06-10 09:53:15 +03:00
|
|
|
|
2016-11-11 18:05:25 +03:00
|
|
|
Providers package API docs - :py:mod:`dependency_injector.providers`
|
2016-06-09 01:43:25 +03:00
|
|
|
|
2015-06-10 09:53:15 +03:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2015-06-16 10:37:57 +03:00
|
|
|
factory
|
|
|
|
singleton
|
2015-07-16 00:48:30 +03:00
|
|
|
callable
|
2016-06-09 17:49:09 +03:00
|
|
|
object
|
2017-12-21 23:54:44 +03:00
|
|
|
dependency
|
2015-07-21 09:57:13 +03:00
|
|
|
overriding
|
2015-07-28 01:31:19 +03:00
|
|
|
custom
|