Modifier and Type | Class and Description |
---|---|
private static class |
LazyBeanEntry.JsrNamed
Implementation of @
Named that can also act like @Named . |
Modifier and Type | Field and Description |
---|---|
(package private) com.google.inject.Binding<T> |
binding |
private javax.inject.Provider<T> |
lazyValue |
private Q |
qualifier |
private int |
rank |
Constructor and Description |
---|
LazyBeanEntry(Q qualifier,
com.google.inject.Binding<T> binding,
int rank) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns a human-readable description of the bean; see @
Description . |
java.lang.Class<T> |
getImplementationClass()
Attempts to find the implementation type without creating the bean instance.
|
Q |
getKey()
Returns the @
Qualifier annotation associated with this particular bean. |
javax.inject.Provider<T> |
getProvider()
Returns the underlying
Provider ; may support creation of multiple instances. |
int |
getRank()
Returns the bean's rank; higher ranked beans override lower ranked beans.
|
java.lang.Object |
getSource()
Returns an arbitrary object that indicates where this bean was configured.
|
T |
getValue()
Returns the associated instance of the bean; returns same instance for each call.
|
T |
setValue(T value) |
java.lang.String |
toString() |
private final Q extends java.lang.annotation.Annotation qualifier
final com.google.inject.Binding<T> binding
private final javax.inject.Provider<T> lazyValue
private final int rank
public Q getKey()
BeanEntry
Qualifier
annotation associated with this particular bean.public T getValue()
BeanEntry
public javax.inject.Provider<T> getProvider()
BeanEntry
Provider
; may support creation of multiple instances.getProvider
in interface BeanEntry<Q extends java.lang.annotation.Annotation,T>
public java.lang.String getDescription()
BeanEntry
Description
.getDescription
in interface BeanEntry<Q extends java.lang.annotation.Annotation,T>
Description
public java.lang.Class<T> getImplementationClass()
BeanEntry
getImplementationClass
in interface BeanEntry<Q extends java.lang.annotation.Annotation,T>
null
if the type cannot be determinedpublic java.lang.Object getSource()
BeanEntry
public int getRank()
BeanEntry
public java.lang.String toString()
toString
in class java.lang.Object