Commit Graph

76 Commits

Author SHA1 Message Date
Antony Male 6ee8927137 Stitch EventAggregator into bootstrapper 2014-02-25 13:21:26 +00:00
Antony Male 5f655188c5 Fix autobinding problem 2014-02-25 13:15:45 +00:00
Antony Male f41645ab89 Finish EventAggregator, and start writing tests 2014-02-25 13:12:34 +00:00
Antony Male 08d80404ec WIP on the EventAggregator 2014-02-24 08:06:56 +00:00
Antony Male b13908e762 Re-arrange bootloaders
Bootloader is now abstract, and called BootstrapperBase. The default
implmentations of the IoC functions have been removed - we include an IoC
container, no point in providing a Bootstrapper implementation which
doesn't use it.

IoCBootstrapper has been renamed Bootstrapper, to make it more obvious
that it's the primary bootstrapper.
2014-02-23 20:08:35 +00:00
Antony Male e37068838a Execute runs delegate synchronously if possible 2014-02-23 20:05:56 +00:00
Antony Male 40c9d4ed88 Get rid of the static ViewLocator and ViewModelBinder, and replace with the singleton ViewManager 2014-02-23 20:02:18 +00:00
Antony Male 1607dc9ad3 Add Stylet ResourceDictionary, and automatically load on startup 2014-02-23 19:31:24 +00:00
Antony Male 64cdced116 Add TabNavigation sample 2014-02-22 21:29:27 +00:00
Antony Male 9da8461004 Fix conductors, view binding, and add the WindowConductor 2014-02-22 21:24:36 +00:00
Antony Male e972f2d054 Start adding samples, and fix a couple of things along the way 2014-02-22 15:07:52 +00:00
Antony Male b4aecbab9a Start work on the README 2014-02-20 14:45:28 +00:00
Antony Male 0bcc6d192d Documentation, bug-fixes, tests... 2014-02-20 13:23:28 +00:00
Antony Male 4dffb7d833 Remove duplication in the builder 2014-02-20 12:44:32 +00:00
Antony Male c7d24a75df Allow [Inject] attribute on abstract factory methods to specify key to be injected 2014-02-20 12:39:31 +00:00
Antony Male 3e09ba7e8c Move to a builder/container split
This allows proper fluent syntax to be used, e.g.
    builder.Bind(..).To(..).WithKey(..).InSingletonScope()
as well as making it clear that they can't modify the container after
it's been created. Also means less documentation duplication between
interface and implementation...

Documentation needs fixing, and the exceptions will need looking at to
make sure they still give enough information.
2014-02-19 22:13:00 +00:00
Antony Male fd3ef7d1fd Actually add the new file... 2014-02-19 20:35:51 +00:00
Antony Male 4a626a95d9 Make BindTo internal 2014-02-19 08:24:07 +00:00
Antony Male 867cd73463 Start the mammoth task of documenting everything 2014-02-18 18:13:21 +00:00
Antony Male a73a5f65d9 Reflector StyletIoC into multiple implementation files 2014-02-18 13:15:24 +00:00
Antony Male 374f5d9049 Fix parameter injection 2014-02-18 12:26:08 +00:00
Antony Male c7ea379071 Working towards IInjectionAware, but for some reason test case isn't being injected at all... 2014-02-18 08:27:14 +00:00
Antony Male 145e5697f2 WIP towards building up instances as they're created 2014-02-17 18:18:05 +00:00
Antony Male 9a18af55c9 Fix BuildUp, and add unit tests 2014-02-17 17:51:39 +00:00
Antony Male 27594d2fdb WIP towards BuildUp() functionality 2014-02-17 13:23:47 +00:00
Antony Male 3639289b93 Add dyanamic factory implementation, with Bind(...).ToAbstractFactory() syntax 2014-02-17 12:47:29 +00:00
Antony Male 396d55098a Fix a potential race condition with creating singletons 2014-02-17 08:04:28 +00:00
Antony Male 3d0597fbbc Sort out my locking - I think it's all safe now 2014-02-16 18:18:26 +00:00
Antony Male 4e7b1db5d5 Change TypeKey from a struct to a class, with significant performance gains 2014-02-16 14:09:52 +00:00
Antony Male 931950c2fb Finish off TypeKeys (at least, the unit tests pass...)
Required moving back to the old way of specifying keys, but oh well
2014-02-16 13:39:30 +00:00
Antony Male 93bb4663c2 WIP towards using TypeKeys 2014-02-15 18:28:48 +00:00
Antony Male a58b840cf7 Optimise a good deal further by reducing dictionary lookups 2014-02-15 17:41:30 +00:00
Antony Male f45fc9491d Optimise a bit 2014-02-14 17:47:28 +00:00
Antony Male 29465af37c Add locking around boundaries 2014-02-14 12:56:59 +00:00
Antony Male 44c3e0c974 Rename service -> container 2014-02-14 12:47:23 +00:00
Antony Male d001d56973 The option to associate a key with a binding is now given by Bind...To...WithKey(key) 2014-02-14 12:45:58 +00:00
Antony Male 07469bbf3a Add a ton more tests, and fix a bug or two 2014-02-13 21:55:30 +00:00
Antony Male eb163586cc Couple more ctor injection unit tests 2014-02-13 17:43:23 +00:00
Antony Male e71a1f0dc7 Fix a corner-case with unbound generic registrations 2014-02-13 13:34:26 +00:00
Antony Male 0005e2b194 More work on unit tests 2014-02-12 17:45:15 +00:00
Antony Male 460f6ae9d1 Add 'Bind(..).ToAllImplementations(...) which acceps unbound generics, normal generics, etc etc 2014-02-12 13:22:37 +00:00
Antony Male 7fc2be3ed0 Minor fix 2014-02-11 22:29:45 +00:00
Antony Male cf9f0857a9 Start writing StyletIoC unit tests in earnest 2014-02-11 21:55:11 +00:00
Antony Male 333387d68a Finish off binding of unbound generic types 2014-02-11 21:30:45 +00:00
Antony Male ea8beb1bcf WIP towards unbound generic types 2014-02-11 13:42:06 +00:00
Antony Male 37fc40f9ab Refactor so that GetAll<> doesn't need to make a generic type in the majority case, and so that Get<> can't return a getAllType 2014-02-11 12:52:44 +00:00
Antony Male 652bd6d82b Finish implementing non-generic binding methods 2014-02-11 12:34:01 +00:00
Antony Male c774f0291d WIP towards non-generic binding methods (needed for open generics) 2014-02-11 08:30:31 +00:00
Antony Male 61df17de3e Tidy/fix logic around creating 'get all' types 2014-02-10 13:38:23 +00:00
Antony Male b8961ab60e Remove duplication, although we're still creating a generic type twice 2014-02-10 09:04:33 +00:00