parsley v0.3.0
Pre-release
Pre-release
Changes
- Service registrations can be bundled in a
ModuleFunc
to register related types as a unit. - The
ServiceRegistry
now accepts object instances as singleton service registrations. - The
ResolveRequiredService[T]
convenience function can resolve and safe-cast objects. - The resolver instance registers with the registry to inject the
Resolver
object into the factory and constructor methods. - The resolver can now accept instances of non-registered types via the
ResolveWithOptions[T]
method. - The
ServiceRegistry
has new methods for creating linked and scoped registry objects (which share the sameServiceIdSequence
). Scoped registries inherit all parent service registrations, while linked registries are empty.