BindingBuilder
, ConstantBindingBuilderImpl
public abstract class AbstractBindingBuilder<T>
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ANNOTATION_ALREADY_SPECIFIED |
|
protected Binder |
binder |
|
static java.lang.String |
BINDING_TO_NULL |
|
static java.lang.String |
CONSTANT_VALUE_ALREADY_SET |
|
protected java.util.List<Element> |
elements |
|
static java.lang.String |
IMPLEMENTATION_ALREADY_SET |
|
protected static Key<?> |
NULL_KEY |
|
protected int |
position |
|
static java.lang.String |
SCOPE_ALREADY_SET |
|
static java.lang.String |
SINGLE_INSTANCE_AND_SCOPE |
Constructor | Description |
---|---|
AbstractBindingBuilder(Binder binder,
java.util.List<Element> elements,
java.lang.Object source,
Key<T> key) |
Modifier and Type | Method | Description |
---|---|---|
protected BindingImpl<T> |
annotatedWithInternal(java.lang.annotation.Annotation annotation) |
Sets the binding to a copy with the specified annotation on the bound key
|
protected BindingImpl<T> |
annotatedWithInternal(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
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<T> |
getBinding() |
|
void |
in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation) |
|
void |
in(Scope scope) |
|
protected boolean |
keyTypeIsSet() |
|
protected BindingImpl<T> |
setBinding(BindingImpl<T> binding) |
public static final java.lang.String IMPLEMENTATION_ALREADY_SET
public static final java.lang.String SINGLE_INSTANCE_AND_SCOPE
public static final java.lang.String SCOPE_ALREADY_SET
public static final java.lang.String BINDING_TO_NULL
public static final java.lang.String CONSTANT_VALUE_ALREADY_SET
public static final java.lang.String ANNOTATION_ALREADY_SPECIFIED
protected static final Key<?> NULL_KEY
protected java.util.List<Element> elements
protected int position
protected final Binder binder
protected BindingImpl<T> getBinding()
protected BindingImpl<T> setBinding(BindingImpl<T> binding)
protected BindingImpl<T> annotatedWithInternal(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
protected BindingImpl<T> annotatedWithInternal(java.lang.annotation.Annotation annotation)
public void in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
public void in(Scope scope)
public void asEagerSingleton()
protected boolean keyTypeIsSet()
protected void checkNotTargetted()
protected void checkNotAnnotated()
protected void checkNotScoped()