2015-06-10 06:53:15 +00:00
|
|
|
Providers
|
|
|
|
=========
|
|
|
|
|
2015-07-27 22:31:19 +00:00
|
|
|
Providers are strategies of accessing objects. They describe how particular
|
|
|
|
objects are provided.
|
2015-06-10 06:53:15 +00:00
|
|
|
|
2015-07-27 22:31:19 +00: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
|
|
|
|
custom providers.
|
2015-06-10 06:53:15 +00:00
|
|
|
|
2015-09-03 23:33:15 +00:00
|
|
|
All providers are validated in multithreading environment and considered to
|
2015-09-04 07:17:13 +00:00
|
|
|
be thread safe.
|
2015-09-03 23:33:15 +00:00
|
|
|
|
2015-06-10 06:53:15 +00:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2015-06-16 07:37:57 +00:00
|
|
|
factory
|
|
|
|
singleton
|
|
|
|
static
|
2015-07-15 21:48:30 +00:00
|
|
|
callable
|
2015-06-18 13:34:26 +00:00
|
|
|
external_dependency
|
2015-07-21 06:57:13 +00:00
|
|
|
overriding
|
2015-07-27 22:31:19 +00:00
|
|
|
custom
|