Package org.eclipse.sisu.inject
Class LazyBeanEntry<Q extends java.lang.annotation.Annotation,T>
- java.lang.Object
-
- org.eclipse.sisu.inject.LazyBeanEntry<Q,T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LazyBeanEntry.JsrNamed
Implementation of @Named
that can also act like @Named
.
-
Constructor Summary
Constructors Constructor Description LazyBeanEntry(Q qualifier, com.google.inject.Binding<T> binding, int rank)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 underlyingProvider
; 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()
-
-
-
Method Detail
-
getKey
public Q getKey()
Description copied from interface:BeanEntry
Returns the @Qualifier
annotation associated with this particular bean.
-
getValue
public T getValue()
Description copied from interface:BeanEntry
Returns the associated instance of the bean; returns same instance for each call.
-
getProvider
public javax.inject.Provider<T> getProvider()
Description copied from interface:BeanEntry
Returns the underlyingProvider
; may support creation of multiple instances.- Specified by:
getProvider
in interfaceBeanEntry<Q extends java.lang.annotation.Annotation,T>
- Returns:
- Bean provider
-
getDescription
public java.lang.String getDescription()
Description copied from interface:BeanEntry
Returns a human-readable description of the bean; see @Description
.- Specified by:
getDescription
in interfaceBeanEntry<Q extends java.lang.annotation.Annotation,T>
- Returns:
- Human-readable description
- See Also:
Description
-
getImplementationClass
public java.lang.Class<T> getImplementationClass()
Description copied from interface:BeanEntry
Attempts to find the implementation type without creating the bean instance.- Specified by:
getImplementationClass
in interfaceBeanEntry<Q extends java.lang.annotation.Annotation,T>
- Returns:
- Implementation type;
null
if the type cannot be determined
-
getSource
public java.lang.Object getSource()
Description copied from interface:BeanEntry
Returns an arbitrary object that indicates where this bean was configured.
-
getRank
public int getRank()
Description copied from interface:BeanEntry
Returns the bean's rank; higher ranked beans override lower ranked beans.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-