Instructs Guice to require a binding to the given key.
(Key<?> key)
| 212 | |
| 213 | /** Instructs Guice to require a binding to the given key. */ |
| 214 | protected final void requireBinding(Key<?> key) { |
| 215 | binder().getProvider(key); |
| 216 | } |
| 217 | |
| 218 | /** Instructs Guice to require a binding to the given type. */ |
| 219 | protected final void requireBinding(Class<?> type) { |