org.springframework.beans.factory.config.BeanFactoryPostProcessor
implementation that allows for convenient registration of custom autowire
qualifier types.
<bean id="customAutowireConfigurer" class="org.springframework.beans.factory.annotation.CustomAutowireConfigurer">
<property name="customQualifierTypes">
<set>
<value>mypackage.MyQualifier</value>
</set>
</property>
</bean>
org.springframework.beans.factory.annotation.Qualifier
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | |
| private Set | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | postProcessBeanFactory(ConfigurableListableBeanFactory
the bean factory used by the application context beanFactory)Implements org. |
| public void | setBeanClassLoader(ClassLoader
the owning class loader beanClassLoader)Implements org. class loader to
a bean instance.
|
| public void | setCustomQualifierTypes(Set<?>
the custom types to register customQualifierTypes)Register custom qualifier annotation types to be considered when autowiring beans. |
| public void |
| beanClassLoader | back to summary |
|---|---|
| private ClassLoader beanClassLoader
| |
| customQualifierTypes | back to summary |
|---|---|
| private Set<?> customQualifierTypes
| |
| order | back to summary |
|---|---|
| private int order | |
| CustomAutowireConfigurer | back to summary |
|---|---|
| public CustomAutowireConfigurer() | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| postProcessBeanFactory | back to summary |
|---|---|
| public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException Implements org. Doc from org. Modify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.
| |
| setBeanClassLoader | back to summary |
|---|---|
| public void setBeanClassLoader(ClassLoader beanClassLoader) Implements org. Doc from org. Callback that supplies the bean Invoked after the population of normal bean properties but
before an initialization callback such as
| |
| setCustomQualifierTypes | back to summary |
|---|---|
| public void setCustomQualifierTypes(Set<?> customQualifierTypes) Register custom qualifier annotation types to be considered when autowiring beans. Each element of the provided set may be either a Class instance or a String representation of the fully-qualified class name of the custom annotation. Note that any annotation that is itself annotated with Spring's
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) | |