Is there a Way to bind Supplier<T> in google guice?

42 Views Asked by At

I tried doing that like below

bind(configClass).toProvider(Provider<Supplier<T>>).in(Singleton.class);

But I'm getting this error.

no suitable method found for toProvider(com.google.inject.Provider<java.util.function.Supplier>)

0

There are 0 best solutions below