Providers - generation ?

2018-02-12 Thread competitiveprogramming . pietro
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 providerOfA ...)

Re: Providers - generation ?

2018-02-12 Thread competitiveprogramming . pietro
I was reading that page but I can't find where it explicitly says they are generated. Would you know where the code that generates them is ? On Monday, February 12, 2018 at 12:32:33 PM UTC, scl wrote: > > Yes, Providers are generated on the fly by guice. > >

Re: Providers - generation ?

2018-02-12 Thread competitiveprogramming . pietro
Ah ok, thanks. On Monday, February 12, 2018 at 12:53:16 PM UTC, scl wrote: > > There are many different implementations depending on the scope and the > binding. > An incomplete list is: > - InjectorImpl.getProviderOrThrow() > - Scopes.SINGLETON > - ProviderLookup.getProvider() > -