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. |
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()
Creates an instance of the bean; returns same instance for each subsequent 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>
String getDescription()
Description
.Class<T> getImplementationClass()
null
if the type cannot be determinedObject getSource()
Object.toString()
int getRank()
Copyright © 2010-2013 Sonatype, Inc.. All Rights Reserved.