Adds a dependency from this module to key. When the injector is created, Guice will report an error if key cannot be injected. Note that this requirement may be satisfied by implicit binding, such as a public no-arguments constructor. @since 2.0
(Key<?> key)
| 161 | * @since 2.0 |
| 162 | */ |
| 163 | protected void requireBinding(Key<?> key) { |
| 164 | binder().getProvider(key); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * Adds a dependency from this module to {@code type}. When the injector is created, Guice will |
nothing calls this directly
no test coverage detected