Returns a new dependency that is not attached to an injection point. The returned dependency is nullable.
(Key<T> key)
| 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) { |