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

Method get

core/src/com/google/inject/spi/Dependency.java:56–58  ·  view source on GitHub ↗

Returns a new dependency that is not attached to an injection point. The returned dependency is nullable.

(Key<T> key)

Source from the content-addressed store, hash-verified

54 * nullable.
55 */
56 public static <T> Dependency<T> get(Key<T> key) {
57 return new Dependency<T>(null, MoreTypes.canonicalizeKey(key), true, -1);
58 }
59
60 /** Returns the dependencies from the given injection points. */
61 public static Set<Dependency<?>> forInjectionPoints(Set<InjectionPoint> injectionPoints) {

Callers 15

configureMethod · 0.95
testSpiAccessMethod · 0.95
getDependenciesMethod · 0.95
getDependenciesMethod · 0.95
getProviderMethod · 0.95
ProviderLookupMethod · 0.95
getDependenciesMethod · 0.95
BindingSelectionClass · 0.95
initializeMethod · 0.95

Calls 1

canonicalizeKeyMethod · 0.95

Tested by 11

configureMethod · 0.76
testSpiAccessMethod · 0.76
getDependenciesMethod · 0.76
getDependenciesMethod · 0.76
testDependencies_BindMethod · 0.76
testDependencies_BindMethod · 0.76
getDependenciesMethod · 0.76