Merge branch '5.1.x'
This commit is contained in:
@@ -992,6 +992,18 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
||||
instance = bw.getWrappedInstance();
|
||||
}
|
||||
}
|
||||
catch (UnsatisfiedDependencyException ex) {
|
||||
// Don't swallow, probably misconfiguration...
|
||||
throw ex;
|
||||
}
|
||||
catch (BeanCreationException ex) {
|
||||
// Instantiation failure, maybe too early...
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Bean creation exception on singleton FactoryBean type check: " + ex);
|
||||
}
|
||||
onSuppressedException(ex);
|
||||
return null;
|
||||
}
|
||||
finally {
|
||||
// Finished partial creation of this bean.
|
||||
afterSingletonCreation(beanName);
|
||||
@@ -1019,7 +1031,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
||||
return null;
|
||||
}
|
||||
|
||||
Object instance = null;
|
||||
Object instance;
|
||||
try {
|
||||
// Mark this bean as currently in creation, even if just partially.
|
||||
beforePrototypeCreation(beanName);
|
||||
@@ -1030,8 +1042,12 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
||||
instance = bw.getWrappedInstance();
|
||||
}
|
||||
}
|
||||
catch (UnsatisfiedDependencyException ex) {
|
||||
// Don't swallow, probably misconfiguration...
|
||||
throw ex;
|
||||
}
|
||||
catch (BeanCreationException ex) {
|
||||
// Can only happen when getting a FactoryBean.
|
||||
// Instantiation failure, maybe too early...
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Bean creation exception on non-singleton FactoryBean type check: " + ex);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ import org.springframework.util.CollectionUtils;
|
||||
*
|
||||
* <p>The format of {@code META-INF/spring.schemas} is a properties file where each line
|
||||
* should be of the form {@code systemId=schema-location} where {@code schema-location}
|
||||
* should also be a schema file in the classpath. Since {@code systemId} is commonly a URL,
|
||||
* one must be careful to escape any ':' characters which are treated as delimiters
|
||||
* should also be a schema file in the classpath. Since {@code systemId} is commonly a
|
||||
* URL, one must be careful to escape any ':' characters which are treated as delimiters
|
||||
* in properties files.
|
||||
*
|
||||
* <p>The pattern for the mapping files can be overridden using the
|
||||
* {@link #PluggableSchemaResolver(ClassLoader, String)} constructor
|
||||
* {@link #PluggableSchemaResolver(ClassLoader, String)} constructor.
|
||||
*
|
||||
* @author Rob Harrop
|
||||
* @author Juergen Hoeller
|
||||
|
||||
Reference in New Issue
Block a user