Interface BeanEntry<Q extends Annotation, T>
- All Superinterfaces:
Map.Entry<Q,T>
- All Known Subinterfaces:
BeanEntry<Q,T>
Describes Qualified bean implementations of T:
@Inject Iterable<BeanEntry<Named, Command>> commands;Use this when you want to know more about available beans; especially if you want to avoid creating instances.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable description of the bean; see @Description.Attempts to find the implementation type without creating the bean instance.getKey()Returns the @Qualifierannotation associated with this particular bean.javax.inject.Provider<T> Returns the underlyingProvider; may support creation of multiple instances.intgetRank()Returns the bean's rank; higher ranked beans override lower ranked beans.Returns an arbitrary object that indicates where this bean was configured.getValue()Returns the associated instance of the bean; returns same instance for each call.
-
Method Details
-
getKey
-
getValue
-
getProvider
javax.inject.Provider<T> getProvider()Returns the underlyingProvider; may support creation of multiple instances.- Returns:
- Bean provider
-
getDescription
String getDescription()Returns a human-readable description of the bean; see @Description.- Returns:
- Human-readable description
- See Also:
-
getImplementationClass
-
getSource
Object getSource()Returns an arbitrary object that indicates where this bean was configured.- Returns:
- Source location
-
getRank
int getRank()Returns the bean's rank; higher ranked beans override lower ranked beans.- Returns:
- Assigned rank
- See Also:
-