|
|
|
@ -468,7 +468,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean |
|
|
|
value = resolvedCachedArgument(beanName, this.cachedFieldValue); |
|
|
|
value = resolvedCachedArgument(beanName, this.cachedFieldValue); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
synchronized (this) { |
|
|
|
synchronized (pvs) { |
|
|
|
if (!this.cached) { |
|
|
|
if (!this.cached) { |
|
|
|
Set<String> autowiredBeanNames = new LinkedHashSet<String>(1); |
|
|
|
Set<String> autowiredBeanNames = new LinkedHashSet<String>(1); |
|
|
|
TypeConverter typeConverter = beanFactory.getTypeConverter(); |
|
|
|
TypeConverter typeConverter = beanFactory.getTypeConverter(); |
|
|
|
@ -527,10 +527,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { |
|
|
|
protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { |
|
|
|
if (this.skip == null) { |
|
|
|
if (checkPropertySkipping(pvs)) { |
|
|
|
this.skip = checkPropertySkipping(pvs); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.skip) { |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
Method method = (Method) this.member; |
|
|
|
Method method = (Method) this.member; |
|
|
|
@ -541,7 +538,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean |
|
|
|
arguments = resolveCachedArguments(beanName); |
|
|
|
arguments = resolveCachedArguments(beanName); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
synchronized (this) { |
|
|
|
synchronized (pvs) { |
|
|
|
if (!this.cached) { |
|
|
|
if (!this.cached) { |
|
|
|
Class[] paramTypes = method.getParameterTypes(); |
|
|
|
Class[] paramTypes = method.getParameterTypes(); |
|
|
|
arguments = new Object[paramTypes.length]; |
|
|
|
arguments = new Object[paramTypes.length]; |
|
|
|
|