blob: a2c775c6c244c80f8bb491698f181935d95a4bbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Dependency injection framework for Python
DI_ENABLE - module variable to enable/disable
the whole DI mechanism (default: True)
@inject - decorator for classes, function or methods
that prepares the injections and executes
then when the decorated function or method
is called.
When used on a class it only prepares the
structures and instance methods that use DI
must be decorated by @usesclassinject
@usesclassinject - this marks an instance method which
should use DI prepared by @inject
on a class level
|