@ -1148,8 +1148,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1148,8 +1148,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
// Candidate constructors for autowiring?
Constructor < ? > [ ] ctors = determineConstructorsFromBeanPostProcessors ( beanClass , beanName ) ;
if ( ctors ! = null | |
mbd . getResolvedAutowireMode ( ) = = RootBeanDefinition . AUTOWIRE_CONSTRUCTOR | |
if ( ctors ! = null | | mbd . getResolvedAutowireMode ( ) = = AUTOWIRE_CONSTRUCTOR | |
mbd . hasConstructorArgumentValues ( ) | | ! ObjectUtils . isEmpty ( args ) ) {
return autowireConstructor ( beanName , mbd , ctors , args ) ;
}
@ -1351,25 +1350,21 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1351,25 +1350,21 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
PropertyValues pvs = ( mbd . hasPropertyValues ( ) ? mbd . getPropertyValues ( ) : null ) ;
if ( mbd . getResolvedAutowireMode ( ) = = RootBeanDefinition . AUTOWIRE_BY_NAME | |
mbd . getResolvedAutowireMode ( ) = = RootBeanDefinition . AUTOWIRE_BY_TYPE ) {
if ( mbd . getResolvedAutowireMode ( ) = = AUTOWIRE_BY_NAME | | mbd . getResolvedAutowireMode ( ) = = AUTOWIRE_BY_TYPE ) {
MutablePropertyValues newPvs = new MutablePropertyValues ( pvs ) ;
// Add property values based on autowire by name if applicable.
if ( mbd . getResolvedAutowireMode ( ) = = RootBeanDefinition . AUTOWIRE_BY_NAME ) {
if ( mbd . getResolvedAutowireMode ( ) = = AUTOWIRE_BY_NAME ) {
autowireByName ( beanName , mbd , bw , newPvs ) ;
}
// Add property values based on autowire by type if applicable.
if ( mbd . getResolvedAutowireMode ( ) = = RootBeanDefinition . AUTOWIRE_BY_TYPE ) {
if ( mbd . getResolvedAutowireMode ( ) = = AUTOWIRE_BY_TYPE ) {
autowireByType ( beanName , mbd , bw , newPvs ) ;
}
pvs = newPvs ;
}
boolean hasInstAwareBpps = hasInstantiationAwareBeanPostProcessors ( ) ;
boolean needsDepCheck = ( mbd . getDependencyCheck ( ) ! = Roo tBeanDefinition. DEPENDENCY_CHECK_NONE ) ;
boolean needsDepCheck = ( mbd . getDependencyCheck ( ) ! = Abstrac tBeanDefinition. DEPENDENCY_CHECK_NONE ) ;
PropertyDescriptor [ ] filteredPds = null ;
if ( hasInstAwareBpps ) {
@ -1582,9 +1577,9 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1582,9 +1577,9 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
for ( PropertyDescriptor pd : pds ) {
if ( pd . getWriteMethod ( ) ! = null & & ( pvs = = null | | ! pvs . contains ( pd . getName ( ) ) ) ) {
boolean isSimple = BeanUtils . isSimpleProperty ( pd . getPropertyType ( ) ) ;
boolean unsatisfied = ( dependencyCheck = = Roo tBeanDefinition. DEPENDENCY_CHECK_ALL ) | |
( isSimple & & dependencyCheck = = Roo tBeanDefinition. DEPENDENCY_CHECK_SIMPLE ) | |
( ! isSimple & & dependencyCheck = = Roo tBeanDefinition. DEPENDENCY_CHECK_OBJECTS ) ;
boolean unsatisfied = ( dependencyCheck = = Abstrac tBeanDefinition. DEPENDENCY_CHECK_ALL ) | |
( isSimple & & dependencyCheck = = Abstrac tBeanDefinition. DEPENDENCY_CHECK_SIMPLE ) | |
( ! isSimple & & dependencyCheck = = Abstrac tBeanDefinition. DEPENDENCY_CHECK_OBJECTS ) ;
if ( unsatisfied ) {
throw new UnsatisfiedDependencyException ( mbd . getResourceDescription ( ) , beanName , pd . getName ( ) ,
"Set this property value or disable dependency checking for this bean." ) ;