Polish whitespace in ConfigurationClassEnhancer
This commit is contained in:
parent
06d06d4aa9
commit
866999764d
|
|
@ -252,13 +252,14 @@ class ConfigurationClassEnhancer {
|
||||||
// is the same as that of referring to a FactoryBean within XML. See SPR-6602.
|
// is the same as that of referring to a FactoryBean within XML. See SPR-6602.
|
||||||
if (factoryContainsBean('&'+beanName) && factoryContainsBean(beanName)) {
|
if (factoryContainsBean('&'+beanName) && factoryContainsBean(beanName)) {
|
||||||
Object factoryBean = this.beanFactory.getBean('&'+beanName);
|
Object factoryBean = this.beanFactory.getBean('&'+beanName);
|
||||||
if (factoryBean instanceof ScopedProxyFactoryBean) {
|
if (factoryBean instanceof ScopedProxyFactoryBean) {
|
||||||
// pass through - scoped proxy factory beans are a special case and should not
|
// pass through - scoped proxy factory beans are a special case and should not
|
||||||
// be further proxied
|
// be further proxied
|
||||||
} else {
|
}
|
||||||
// it is a candidate FactoryBean - go ahead with enhancement
|
else {
|
||||||
return enhanceFactoryBean(factoryBean.getClass(), beanName);
|
// it is a candidate FactoryBean - go ahead with enhancement
|
||||||
}
|
return enhanceFactoryBean(factoryBean.getClass(), beanName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean factoryIsCaller = beanMethod.equals(SimpleInstantiationStrategy.getCurrentlyInvokedFactoryMethod());
|
boolean factoryIsCaller = beanMethod.equals(SimpleInstantiationStrategy.getCurrentlyInvokedFactoryMethod());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue