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 classLazyBeanEntry.JsrNamedImplementation of @Namedthat 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.StringgetDescription()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.QgetKey()Returns the @Qualifierannotation associated with this particular bean.javax.inject.Provider<T>getProvider()Returns the underlyingProvider; may support creation of multiple instances.intgetRank()Returns the bean's rank; higher ranked beans override lower ranked beans.java.lang.ObjectgetSource()Returns an arbitrary object that indicates where this bean was configured.TgetValue()Returns the associated instance of the bean; returns same instance for each call.TsetValue(T value)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public Q getKey()
Description copied from interface:BeanEntryReturns the @Qualifierannotation associated with this particular bean.
-
getValue
public T getValue()
Description copied from interface:BeanEntryReturns the associated instance of the bean; returns same instance for each call.
-
getProvider
public javax.inject.Provider<T> getProvider()
Description copied from interface:BeanEntryReturns the underlyingProvider; may support creation of multiple instances.- Specified by:
getProviderin interfaceBeanEntry<Q extends java.lang.annotation.Annotation,T>- Returns:
- Bean provider
-
getDescription
public java.lang.String getDescription()
Description copied from interface:BeanEntryReturns a human-readable description of the bean; see @Description.- Specified by:
getDescriptionin 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:BeanEntryAttempts to find the implementation type without creating the bean instance.- Specified by:
getImplementationClassin interfaceBeanEntry<Q extends java.lang.annotation.Annotation,T>- Returns:
- Implementation type;
nullif the type cannot be determined
-
getSource
public java.lang.Object getSource()
Description copied from interface:BeanEntryReturns an arbitrary object that indicates where this bean was configured.
-
getRank
public int getRank()
Description copied from interface:BeanEntryReturns the bean's rank; higher ranked beans override lower ranked beans.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-