private boolean handleBean ( final ConfigurationContext ctx , final Class < ? > _type , final Object cfg , final ParsedConfiguration _parsedCfg ) { String _containerName = _parsedCfg . getContainer ( ) ; BeanPropertyMutator m = provideMutator ( cfg . getClass ( ) ) ; Class < ? > _targetType = m . getType ( _containerName ) ; if ( _targetType == null ) { return false ; } if ( ! _targetType . isAssignableFrom ( _type ) ) { throw new ConfigurationException ( "Type mismatch, expected: '" + _targetType . getName ( ) + "'" , _parsedCfg ) ; } Object _bean = createBeanAndApplyConfiguration ( ctx , _type , _parsedCfg ) ; mutateAndCatch ( cfg , m , _containerName , _bean , _parsedCfg , _bean ) ; return true ; }
Create the bean apply configuration to it and set it .