public interface BeanEntry<Q extends Annotation,T> extends Map.Entry<Q,T>
Q
ualified 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.
BeanLocator
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a human-readable description of the bean; see @
Description . |
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.
|
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.
|
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode, setValue
Q getKey()
Qualifier
annotation associated with this particular bean.getKey
in interface Map.Entry<Q extends Annotation,T>
T getValue()
getValue
in interface Map.Entry<Q extends Annotation,T>
javax.inject.Provider<T> getProvider()
Provider
; may support creation of multiple instances.String getDescription()
Description
.Description
Class<T> getImplementationClass()
null
if the type cannot be determinedObject getSource()
int getRank()
Priority
Copyright © 2018. All rights reserved.