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<Element> |
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 binder,
List<Element> elements,
Object source,
Key<T> key) |
Modifier and Type | Method and Description |
---|---|
protected BindingImpl<T> |
annotatedWithInternal(Annotation annotation)
Sets the binding to a copy with the specified annotation on the bound key
|
protected BindingImpl<T> |
annotatedWithInternal(Class<? extends 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(Class<? extends Annotation> scopeAnnotation) |
void |
in(Scope scope) |
protected boolean |
keyTypeIsSet() |
protected BindingImpl<T> |
setBinding(BindingImpl<T> binding) |
public static final String IMPLEMENTATION_ALREADY_SET
public static final String SINGLE_INSTANCE_AND_SCOPE
public static final String SCOPE_ALREADY_SET
public static final String BINDING_TO_NULL
public static final String CONSTANT_VALUE_ALREADY_SET
public static final String ANNOTATION_ALREADY_SPECIFIED
protected static final Key<?> NULL_KEY
protected int position
protected final Binder binder
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(Scope scope)
public void asEagerSingleton()
protected boolean keyTypeIsSet()
protected void checkNotTargetted()
protected void checkNotAnnotated()
protected void checkNotScoped()
Copyright © 2006–2020 Google, Inc.. All rights reserved.