Commit graph

17 commits

Author SHA1 Message Date
Mike Bierlee
2bced68e43 Change reference into class, makes it more easily passed as reference 2014-05-20 23:06:27 +02:00
Mike Bierlee
64e25715cf Add scope setter for single instance scopes 2014-05-20 22:12:14 +02:00
Mike Bierlee
4f2f0fbe59 Add single instance scope, make it the default scope of new registrations 2014-05-20 22:03:50 +02:00
Mike Bierlee
0c084a43b9 Add scope to registration, check for unset scope 2014-05-20 21:54:11 +02:00
Mike Bierlee
ac077c24d7 Move registration to own module 2014-05-20 21:38:14 +02:00
Mike Bierlee
990c9f017b Move test descriptions outide of unittest block to make them readable when collapsed 2014-05-20 21:36:07 +02:00
Mike Bierlee
464abd9cb0 Skip validity check on registering concrete type 2014-05-20 01:12:15 +02:00
Mike Bierlee
b18b6ed49c Add global singleton for simplified use of container 2014-05-20 00:35:49 +02:00
Mike Bierlee
27a50a53cf Remove static context from container 2014-05-20 00:23:25 +02:00
Mike Bierlee
da1f604ef7 Add global setting for disabling type validity 2014-05-20 00:16:44 +02:00
Mike Bierlee
423f21230a Throw exception when resolving non-registered type 2014-05-16 02:05:04 +02:00
Mike Bierlee
27d86ce8c7 Fix typo registratedType -> registeredType 2014-05-16 01:38:28 +02:00
Mike Bierlee
cc3c0d5f6d Add type validity check 2014-05-16 01:36:17 +02:00
Mike Bierlee
535f5df482 Allow registration by interfaces 2014-05-16 00:23:06 +02:00
Mike Bierlee
6fb34bb233 Give template parameters more meaningful names 2014-05-15 23:49:42 +02:00
Mike Bierlee
5df222f509 Add resolving of registered types 2014-05-10 14:52:29 +02:00
Mike Bierlee
20e78b8d93 Add registration of concrete classes 2014-05-06 01:32:22 +02:00