AliSoftware / Dip

Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
MIT License
977 stars 72 forks source link

WeakSingleton scope #96

Closed ilyapuchka closed 8 years ago

ilyapuchka commented 8 years ago

This scope can be usefull when there is a need to recreate objects graph at runtime without reseting container and registering all components again. For example when user changes a language inside application and all its components (UI and business logic) should be recreated.

It is analogous to TyphoonScopeWeakSingleton scope present in Typhoon