Commit graph

116 commits

Author SHA1 Message Date
Mike Bierlee a1d04f7f76 Prepare release 0.3.1 2015-01-25 21:28:35 +01:00
Mike Bierlee 36992c633a Autowire dependencies using autowired registrations instead of letting the container handle it
This fixes known issue "Resolving a class registered by supertype..."
2015-01-25 21:04:17 +01:00
Mike Bierlee 5ebb5805cf Use instantiation context to decide whether to autowire or not 2015-01-25 19:46:17 +01:00
Mike Bierlee 9d931f511b Add registration class that will autowire instances itself 2015-01-25 15:07:11 +01:00
Mike Bierlee 82ea4369b8 Add master module "dependency" 2015-01-25 13:40:11 +01:00
Mike Bierlee 1d74064c15 Reintroduce module container 2015-01-25 13:37:14 +01:00
Mike Bierlee a73b2b9b8b Prepare documention for version 0.3.0 2015-01-24 16:47:40 +01:00
Mike Bierlee b9f39a1a98 Add alternative workaround to readme for autowire limitation 2014-12-31 16:09:00 +01:00
Mike Bierlee 99579060d3 Return resolved instances by qualifier type instead 2014-12-30 18:29:32 +01:00
Mike Bierlee 7a628c32c4 Add debug specifier to reduce verbosity of debug output 2014-12-24 00:05:42 +01:00
Mike Bierlee 77cc636e7f Deprecate buggy work-around in favor of qualifiers 2014-12-14 19:25:08 +01:00
Mike Bierlee 2aef9a1760 Autowire using the qualifier type when resolving dependencies
This will make sure the members of sub-types are also autowired, when a qualifier is given.
2014-12-14 19:20:35 +01:00
Mike Bierlee d07f11d6de Update README to use new method of qualifying 2014-12-13 23:33:07 +01:00
Mike Bierlee 7bc0382a50 Remove left-over debugging output 2014-12-13 23:16:27 +01:00
Mike Bierlee 7ee67ee836 Specify qualifiers in Autowire UDA instead of using separate UDA 2014-12-13 23:15:43 +01:00
Mike Bierlee 1166d2811a Add @Qualifier UDA for qualifying members typed by supertype 2014-12-13 22:06:11 +01:00
Mike Bierlee 9c749c0cb6 Check type at compile-time 2014-12-11 01:40:40 +01:00
Mike Bierlee 4be09dc821 Remove redundant word 2014-11-27 00:58:38 +01:00
Mike Bierlee 041ab1a52b Clarify example a bit 2014-11-27 00:49:20 +01:00
Mike Bierlee bc972d1371 Reqord and fix message of multiple qualifier resolve exception 2014-11-27 00:46:03 +01:00
Mike Bierlee 7b73392004 Update documentation 2014-11-27 00:45:26 +01:00
Mike Bierlee 8b9c8d2774 Add ability to resolve type which has multiple registrations by qualifier 2014-11-27 00:33:13 +01:00
Mike Bierlee d6e3043c7d Prevent multiple registrations of same super- and concrete type 2014-11-26 23:37:29 +01:00
Mike Bierlee 5d7a21ae52 Add ability to register multiple concrete classes for same supertype 2014-11-26 23:22:56 +01:00
Mike Bierlee ae139d5f1f Change names to be more unified 2014-11-26 23:03:18 +01:00
Mike Bierlee 5037b79998 Add copyright back in 2014-11-26 23:01:01 +01:00
Mike Bierlee db1f76b766 Add cautionary tale to the workaround 2014-10-25 16:56:59 +02:00
Mike Bierlee e46dfccd26 Update examples in README.md 2014-10-25 16:48:13 +02:00
Mike Bierlee 4e8555c7da Rename and deprecate "container" module 2014-10-25 16:43:32 +02:00
Mike Bierlee b2bb6f15c4 Rename "Container" -> "DependencyContainer". Deprecate use of "Container" 2014-10-25 15:24:42 +02:00
Mike Bierlee 088f5e851d Correct mistakes in CHANGES.md 2014-10-20 11:07:02 +02:00
Mike Bierlee e0436438af Add additional debug output to more clearly show the chain of dependency injection 2014-10-13 00:39:40 +02:00
Mike Bierlee 92db3c0405 Add "Autowired" alias for "Autowire" UDA to satisfy Spring habits 2014-10-12 17:41:09 +02:00
Mike Bierlee b0c880a950 Destroy registrations when clearing them, invoking their destructors 2014-10-06 13:18:32 +02:00
Mike Bierlee 16e961c43d Git ignore dub selections 2014-10-05 15:36:50 +02:00
Mike Bierlee 0af70923bf Fix version number in README 2014-10-05 14:38:57 +02:00
Mike Bierlee 2303f4b9f3 Build project as unittest on travis 2014-10-05 14:26:08 +02:00
Mike Bierlee fbb4d866a4 Use correct version of DMD and DUB in travis config 2014-10-05 14:17:15 +02:00
Mike Bierlee d7bbcd5646 Prepare release 0.1.4 2014-10-05 14:14:10 +02:00
Mike Bierlee a36ff06ae0 Update version info of DMD and DUB in readme 2014-10-05 14:04:13 +02:00
Mike Bierlee c3acabd9f2 Remove DUB warnings regarding build options
The appropriate build types need to be called in addition to build configs
2014-10-05 13:50:44 +02:00
Mike Bierlee e19564e3cf Fix incorrect clearing of registrations 2014-10-05 13:43:57 +02:00
Mike Bierlee eb203c8e3c Reword section in readme 2014-07-24 23:48:37 +02:00
Mike Bierlee 635ec7f18a Update readme section about circular dependencies 2014-07-24 23:43:56 +02:00
Mike Bierlee 1ab6327cac Fix typo in changelog 2014-07-13 17:40:46 +02:00
Mike Bierlee 5ddcff7dcd Prepare release 0.1.3 2014-07-13 17:34:44 +02:00
Mike Bierlee 50824b4e5c Remove known, unsolvable, issue
Any logical solution would endlessly autowire new instances if no stop condition is given. The current circular dependency resolution system provides such a stop condition just fine.
2014-07-10 01:12:02 +02:00
Mike Bierlee 5caf57d31d Reduce code due to type deduction 2014-07-10 01:09:36 +02:00
Mike Bierlee b38bccc03c Fix autowiring classes with non-symbolic unassignable members (such as aliases) 2014-07-09 23:15:05 +02:00
Mike Bierlee af8e154dc5 Capitalize Capital 2014-07-05 00:22:32 +02:00