kohesive / injekt

Dependency Injection for Kotlin
MIT License
235 stars 19 forks source link

When defining a factory, allow asking for its instance storage to use week/soft references #4

Open apatrida opened 9 years ago

apatrida commented 9 years ago

A factory PerKey or PerThread may want to allow items to be expired (then recreated on another call to injekt) so that they do not endanger memory for keys or threads that are unbounded in their number.

This may only go in the injekt-registry-guava module since it has nice caching support.