MCPcopy Create free account
hub / github.com/google/guice / configure

Method configure

core/test/com/google/inject/ScopesTest.java:62–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 private final AbstractModule singletonsModule =
61 new AbstractModule() {
62 @Override
63 protected void configure() {
64 bind(BoundAsSingleton.class).in(Scopes.SINGLETON);
65 bind(AnnotatedSingleton.class);
66 bind(EagerSingleton.class).asEagerSingleton();
67 bind(LinkedSingleton.class).to(RealLinkedSingleton.class);
68 bind(DependsOnJustInTimeSingleton.class);
69 bind(NotASingleton.class);
70 bind(ImplementedBySingleton.class).in(Scopes.SINGLETON);
71 bind(ProvidedBySingleton.class).in(Scopes.SINGLETON);
72 bind(ProvidedByAnnotatedSingleton.class);
73 }
74 };
75
76 @Override

Callers

nothing calls this directly

Calls 14

ofMethod · 0.95
anyMethod · 0.95
setNameMethod · 0.80
inMethod · 0.65
bindMethod · 0.65
asEagerSingletonMethod · 0.65
toMethod · 0.65
bindScopeMethod · 0.65
requestInjectionMethod · 0.65
toProviderMethod · 0.65
toInstanceMethod · 0.65
installMethod · 0.65

Tested by

no test coverage detected