summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2012-11-21 14:24:59 +0100
committerMartin Sivak <msivak@redhat.com>2012-11-21 14:24:59 +0100
commit857ff5ebc2d92e11a517d70be40776924742b4cf (patch)
tree827f686a062a8e9104139333751cbbb081113c36 /README
downloadpython-di-857ff5ebc2d92e11a517d70be40776924742b4cf.tar.gz
python-di-857ff5ebc2d92e11a517d70be40776924742b4cf.tar.xz
python-di-857ff5ebc2d92e11a517d70be40776924742b4cf.zip
First commit of python DI framework
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 17 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..a2c775c
--- /dev/null
+++ b/README
@@ -0,0 +1,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