public abstract class AbstractBindingBuilder<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATION_ALREADY_SPECIFIED
|
protected Binder |
binder
|
static String |
BINDING_TO_NULL
|
static String |
CONSTANT_VALUE_ALREADY_SET
|
protected List |
elements
|
static String |
IMPLEMENTATION_ALREADY_SET
|
protected static Key |
NULL_KEY
|
protected int |
position
|
static String |
SCOPE_ALREADY_SET
|
static String |
SINGLE_INSTANCE_AND_SCOPE
|
| Constructor and Description |
|---|
AbstractBindingBuilder(Binder
|
| Modifier and Type | Method and Description |
|---|---|
protected BindingImpl |
annotatedWithInternal(Annotation
Sets the binding to a copy with the specified annotation on the bound key
|
protected BindingImpl |
annotatedWithInternal(Class
Sets the binding to a copy with the specified annotation on the bound key
|
void |
asEagerSingleton()
|
protected void |
checkNotAnnotated()
|
protected void |
checkNotScoped()
|
protected void |
checkNotTargetted()
|
protected BindingImpl |
getBinding()
|
void |
in(Class
|
void |
in(Scope
|
protected boolean |
keyTypeIsSet()
|
protected BindingImpl |
setBinding(BindingImpl
|
public static final StringIMPLEMENTATION_ALREADY_SET
public static final StringSINGLE_INSTANCE_AND_SCOPE
public static final StringSCOPE_ALREADY_SET
public static final StringBINDING_TO_NULL
public static final StringCONSTANT_VALUE_ALREADY_SET
public static final StringANNOTATION_ALREADY_SPECIFIED
protected static final Key<?> NULL_KEY
protected int position
protected final Binderbinder
protected BindingImpl<T> getBinding()
protected BindingImpl<T> setBinding(BindingImpl <T> binding)
protected BindingImpl<T> annotatedWithInternal(Class <? extends Annotation > annotationType)
protected BindingImpl<T> annotatedWithInternal(Annotation annotation)
public void in(Class<? extends Annotation > scopeAnnotation)
public void in(Scopescope)
public void asEagerSingleton()
protected boolean keyTypeIsSet()
protected void checkNotTargetted()
protected void checkNotAnnotated()
protected void checkNotScoped()