public final class ContextExclusiveInjectorProcessor extends MuleInjectorProcessor
SelectiveInjectorProcessor which only considers beans which are defined on a given
ApplicationContext. This is useful to avoid exceptions related to unsatisfied dependencies when using parent context
which also define a AutowiredAnnotationBeanPostProcessor| Constructor and Description |
|---|
ContextExclusiveInjectorProcessor(org.springframework.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.beans.PropertyValues |
postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
Only performs the injetion if
shouldInject(PropertyValues, PropertyDescriptor[], Object, String) returns
true |
protected boolean |
shouldInject(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
Only returns
true if beanName is a key currently registered in the applicationContext or if
beanName equals the bean classname, which in spring jargon means that we're injecting a non registered object
(most likely through Injector.inject(Object) |
postProcessMergedBeanDefinitiondetermineCandidateConstructors, determineRequiredStatus, findAutowireCandidates, getOrder, processInjection, setAutowiredAnnotationType, setAutowiredAnnotationTypes, setBeanFactory, setOrder, setRequiredParameterName, setRequiredParameterValuegetEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic ContextExclusiveInjectorProcessor(org.springframework.context.ApplicationContext applicationContext)
protected boolean shouldInject(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
true if beanName is a key currently registered in the applicationContext or if
beanName equals the bean classname, which in spring jargon means that we're injecting a non registered object
(most likely through Injector.inject(Object)public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
throws org.springframework.beans.BeansException
shouldInject(PropertyValues, PropertyDescriptor[], Object, String) returns
true postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorpostProcessPropertyValues in class org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessororg.springframework.beans.BeansExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.