Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Custom scopes, example of propagating the custom scope to other classes #32

Open
apatrida opened this issue Feb 10, 2016 · 1 comment
Open

Comments

@apatrida
Copy link
Contributor

Add example to docs or example application, where a scope is propagated to other classes.

See example written as test case of this: https:/kohesive/injekt/blob/master/core/src/test/kotlin/uy/kohesive/injekt/TestInjektion.kt#L202-L247

Which uses LocalScoped(see implementation)

And uses scoped factory registrations (see implementation)

apatrida added a commit that referenced this issue Feb 10, 2016
* Added `LocalScoped` class to help in using a local scope delegates
* POSSIBLE BREAKING CHANGE: Moved `InjektScope` extensions into `InjektScope` so that additional imports are not needed
Cleanups for `public` modifier that is not needed
@apatrida
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant