@Test public void provideReturnsSameInstance() { FooProvider provider = new FooProvider(); DNSApiManager mgr = ObjectGraph.create(Providers.provide(provider), new FooProvider.Module()).get( DNSApiManager.class); assertThat(mgr.provider()).isSameAs(provider); }
public static Object provide(denominator.Provider provider) { return new ProvideProvider(provider); }
Providers { public static Object provide(denominator.Provider provider) { return new ProvideProvider(provider); } }
Providers { public static Object provide(denominator.Provider provider) { return new ProvideProvider(provider); }  }
Providers { public static Object provide(denominator.Provider provider) { return new ProvideProvider(provider); }  static Iterable<Provider> list(); static Provider getByName(String providerName); static Provider withUrl(Provider provider, String url); static Object instantiateModule(Provider in); static Object provide(denominator.Provider provider); }
Providers { public static Object provide(denominator.Provider provider) { return new ProvideProvider(provider); }  static Iterable<Provider> list(); static Provider getByName(String providerName); static Provider withUrl(Provider provider, String url); static Object instantiateModule(Provider in); static Object provide(denominator.Provider provider);  }