c***@gmail.com
2018-02-12 12:19:38 UTC
Hi all,
I apologise if my question sounds silly or badly grounded.
I am working on a project which makes intense use of Google Guice and I've
seen several places where the class I am working with uses injected
providers, such as:
class WhatEver {
@Inject
WhatEver(Provider<A> providerOfA ...) { ... }
}
I do not understand how/what implements the provider as I do not see any
class around my module explicitly implementing the interface.
Provider<A>
I am pretty sure there is not any.
How does that work ? Are providers synthesised/generated ? If yes I would
like to see where this is done - so I can have a better idea about how the
whole thing works.
Thanks in advance,
Pietro.
I apologise if my question sounds silly or badly grounded.
I am working on a project which makes intense use of Google Guice and I've
seen several places where the class I am working with uses injected
providers, such as:
class WhatEver {
@Inject
WhatEver(Provider<A> providerOfA ...) { ... }
}
I do not understand how/what implements the provider as I do not see any
class around my module explicitly implementing the interface.
Provider<A>
I am pretty sure there is not any.
How does that work ? Are providers synthesised/generated ? If yes I would
like to see where this is done - so I can have a better idea about how the
whole thing works.
Thanks in advance,
Pietro.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/df1847bb-6125-434a-b00c-53614000aeb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+***@googlegroups.com.
To post to this group, send email to google-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/df1847bb-6125-434a-b00c-53614000aeb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.