public class BinderImpl extends ErrorAttachableImpl implements Binder
Binder.CollectionMultiBindingBuilder<T>, Binder.KeyBinder<K,V>, Binder.Linked<R,T>, Binder.MapMultiBindingBuilder<K,V>, Binder.MultiBindingBuilder<T>, Binder.Qualified<R>, Binder.QualifiedBindingBuilder<T>, Binder.Scoped| Constructor and Description |
|---|
BinderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
$unsafeBind(Key<?> key,
Provider<?> provider) |
<T> Binder.QualifiedBindingBuilder<T> |
bind(TypeReference<T> keyType) |
<T> StdProvider<T> |
getProvider(Key<T> key) |
void |
install(java.lang.Iterable<? extends Module> modules) |
<T> Binder.MultiBindingBuilder<T> |
multibind(TypeReference<T> keyType) |
void |
reportAttachedErrors()
Throws the errors attached to this attachable
|
applySnapshot, attach, attach, attachAll, errorCount, formatMessages, getErrorMessages, hasErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplySnapshot, attach, attach, attachAll, errorCount, formatMessages, getErrorMessages, hasErrorspublic <T> StdProvider<T> getProvider(Key<T> key)
public void $unsafeBind(Key<?> key, Provider<?> provider)
$unsafeBind in interface Binderkey - The key to bindprovider - The provider to bindpublic <T> Binder.QualifiedBindingBuilder<T> bind(TypeReference<T> keyType)
public <T> Binder.MultiBindingBuilder<T> multibind(TypeReference<T> keyType)
public void reportAttachedErrors()
reportAttachedErrors in interface ErrorAttachablereportAttachedErrors in class ErrorAttachableImpl