What is it called when my Component exposes some t...
# dagger
c
What is it called when my Component exposes some type via a field? Aka, instead of using field injection in Android, I can do X instead. I want to call them provision methods... but that sounds weird? Is that what people say when talking on a team? https://dagger.dev/api/latest/dagger/Component.html#provision-methods
s
Do you mean using your component as a Service Locator, where your code ‘gets’/‘pulls’ the dependency (as opposed to D.I where the dependency is ‘set’/‘pushed’ through the @Inject)?
j
Provision methods++
It's definitely not service location because there's no unsafety in either availability or type safety
👍 2
c
Thanks Jake. 👍 on the difference of SL. The more you know!