public interface BeanEntry<Q extends Annotation,T> extends Map.Entry<Q,T>
Map.Entry that maps a JSR330 @Qualifier annotation to a bean implementation.| 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 describes where this bean was configured.
|
T |
getValue()
Returns the associated instance of the bean; returns same instance for each call.
|
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.Class<T> getImplementationClass()
null if the type cannot be determinedObject getSource()
Object.toString()int getRank()
Copyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.