org.eclipse.sisu.BeanEntry<Q extends java.lang.annotation.Annotation, T> |
Known Indirect Subclasses
BeanEntry<Q extends Annotation, 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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getDescription()
Returns a human-readable description of the bean; see @
Description . | ||||||||||
abstract Class<T> |
getImplementationClass()
Attempts to find the implementation type without creating the bean instance.
| ||||||||||
abstract Q |
getKey()
Returns the @Qualifier annotation associated with this particular bean.
| ||||||||||
abstract Provider<T> |
getProvider()
Returns the underlying Provider; may support creation of multiple instances.
| ||||||||||
abstract int |
getRank()
Returns the bean's rank; higher ranked beans override lower ranked beans.
| ||||||||||
abstract Object |
getSource()
Returns an arbitrary object that indicates where this bean was configured.
| ||||||||||
abstract T |
getValue()
Returns the associated instance of the bean; returns same instance for each call.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.util.Map.Entry
|
Returns a human-readable description of the bean; see @Description
.
Attempts to find the implementation type without creating the bean instance.
null
if the type cannot be determined
Returns the @Qualifier annotation associated with this particular bean.
Returns the underlying Provider; may support creation of multiple instances.
Returns the bean's rank; higher ranked beans override lower ranked beans.
Returns an arbitrary object that indicates where this bean was configured.
Returns the associated instance of the bean; returns same instance for each call.