|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils
public class BeanFactoryAnnotationUtils
Convenience methods performing bean lookups related to annotations, for example
Spring's @Qualifier annotation.
BeanFactoryUtils| Constructor Summary | |
|---|---|
BeanFactoryAnnotationUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
qualifiedBeanOfType(BeanFactory beanFactory,
java.lang.Class<T> beanType,
java.lang.String qualifier)
Obtain a bean of type T from the given BeanFactory declaring a
qualifier (e.g. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanFactoryAnnotationUtils()
| Method Detail |
|---|
public static <T> T qualifiedBeanOfType(BeanFactory beanFactory,
java.lang.Class<T> beanType,
java.lang.String qualifier)
T from the given BeanFactory declaring a
qualifier (e.g. via <qualifier> or @Qualifier) matching the given
qualifier, or having a bean name matching the given qualifier.
bf - the BeanFactory to get the target bean frombeanType - the type of bean to retrievequalifier - the qualifier for selecting between multiple bean matches
T (never null)
java.lang.IllegalStateException - if no matching bean of type T found
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||