parsley v0.6.0
Pre-release
Pre-release
Changes
- Registration of named services is now supported; use the
RegisterNamed[T]
method to register a factory for services implementing the same interface and resolve them by name via afunc(string) T
factory method. - The registration and activation of pointer types is now possible (to not enforce interfaces as abstractions).
- Parsley now has a service activation module that can create instances of unregistered types. Use the
Activate[T]
method to invoke a constructor function with resolved dependencies.
Fixes
- This version fixes a bug in the
detectCircularDependency
helper function that could cause the resolver to get stuck in an infinite loop.