Commit graph

287 commits

Author SHA1 Message Date
Mike Bierlee 906ac6246c Ignore lib and dub folder 2014-06-01 18:38:49 +02:00
Mike Bierlee 4b3411f183 Tweak copyright 2014-06-01 00:11:14 +02:00
Mike Bierlee 121d871572 Replace type validity check with template parameter specialization 2014-05-31 23:37:02 +02:00
Mike Bierlee b78e05455d Add removing of registrations 2014-05-31 23:22:29 +02:00
Mike Bierlee 60b1149aea Add test for autowiring circular dependencies 2014-05-30 01:19:51 +02:00
Mike Bierlee f4ad79003e Remove left-over debug import 2014-05-30 01:19:28 +02:00
Mike Bierlee 14d504a752 Change autowire UDA to be a class instead of enum 2014-05-30 01:09:37 +02:00
Mike Bierlee ec5cad2bbf Add test for autowiring member with different attribute 2014-05-30 01:04:40 +02:00
Mike Bierlee 58d0c2b6e0 Add test for autowiring unregistered types 2014-05-30 00:51:03 +02:00
Mike Bierlee 52936379e4 Autowire upon resolving instances 2014-05-30 00:42:58 +02:00
Mike Bierlee 9e59dc0a37 Fix line delimiter 2014-05-30 00:34:49 +02:00
Mike Bierlee 35acaa84d1 Only autowire members which are null 2014-05-30 00:33:08 +02:00
Mike Bierlee 4957b67b49 Test that you can autowire members declared as an interface type 2014-05-27 02:02:07 +02:00
Mike Bierlee a9e5b315e3 Add autowiring of concrete types in existing instances 2014-05-27 01:54:08 +02:00
Mike Bierlee 7d1fe2deda Rename RegistationScope -> CreationScope 2014-05-21 00:27:38 +02:00
Mike Bierlee cbecebf43f Add existing instance registration scope 2014-05-21 00:26:44 +02:00
Mike Bierlee bb0a8d5746 Add registration scope for existing instances 2014-05-20 23:54:45 +02:00
Mike Bierlee abdcd39e9e Add scope setter for new instance scope 2014-05-20 23:36:33 +02:00
Mike Bierlee 8b5122ad91 Add new instance registration scope 2014-05-20 23:31:28 +02:00
Mike Bierlee aed449e565 Add test for registering class with single instance scope 2014-05-20 23:07:42 +02:00
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