Examples of increaseNestingLevel()


Examples of org.springframework.beans.factory.config.DependencyDescriptor.increaseNestingLevel()

    }

    if (type.isArray()) {
      Class<?> componentType = type.getComponentType();
      DependencyDescriptor targetDesc = new DependencyDescriptor(descriptor);
      targetDesc.increaseNestingLevel();
      Map<String, Object> matchingBeans = findAutowireCandidates(beanName, componentType, targetDesc);
      if (matchingBeans.isEmpty()) {
        if (descriptor.isRequired()) {
          raiseNoSuchBeanDefinitionException(componentType, "array of " + componentType.getName(), descriptor);
        }
View Full Code Here

Examples of org.springframework.beans.factory.config.DependencyDescriptor.increaseNestingLevel()

          throw new FatalBeanException("No element type declared for collection [" + type.getName() + "]");
        }
        return null;
      }
      DependencyDescriptor targetDesc = new DependencyDescriptor(descriptor);
      targetDesc.increaseNestingLevel();
      Map<String, Object> matchingBeans = findAutowireCandidates(beanName, elementType, targetDesc);
      if (matchingBeans.isEmpty()) {
        if (descriptor.isRequired()) {
          raiseNoSuchBeanDefinitionException(elementType, "collection of " + elementType.getName(), descriptor);
        }
View Full Code Here

Examples of org.springframework.beans.factory.config.DependencyDescriptor.increaseNestingLevel()

          throw new FatalBeanException("No value type declared for map [" + type.getName() + "]");
        }
        return null;
      }
      DependencyDescriptor targetDesc = new DependencyDescriptor(descriptor);
      targetDesc.increaseNestingLevel();
      Map<String, Object> matchingBeans = findAutowireCandidates(beanName, valueType, targetDesc);
      if (matchingBeans.isEmpty()) {
        if (descriptor.isRequired()) {
          raiseNoSuchBeanDefinitionException(valueType, "map with value type " + valueType.getName(), descriptor);
        }
View Full Code Here

Examples of org.springframework.beans.factory.config.DependencyDescriptor.increaseNestingLevel()

        @Override
        public boolean isRequired() {
          return false;
        }
      };
      descriptorToUse.increaseNestingLevel();
      return Optional.ofNullable(doResolveDependency(descriptorToUse, beanName, null, null));
    }
  }

View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new ParameterDescriptor(type, methodParameter);
  }

}
View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new BeanPropertyDescriptor(type, this.property, methodParameter, this.annotations);
  }

View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new ParameterDescriptor(type, methodParameter);
  }

}
View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);     
    return new BeanPropertyDescriptor(type, this.property, methodParameter, this.annotations);
  }
 
View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

    int i = 0;
    for (; it.hasNext(); i++) {
      Object element = it.next();
      String indexedPropertyName = buildIndexedPropertyName(propertyName, i);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
      }
      Object convertedElement =
          convertIfNecessary(indexedPropertyName, null, element, elementType, typeDescriptor);
      if (methodParam != null) {
        methodParam.decreaseNestingLevel();
View Full Code Here

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()

      Map.Entry entry = (Map.Entry) it.next();
      Object key = entry.getKey();
      Object value = entry.getValue();
      String keyedPropertyName = buildKeyedPropertyName(propertyName, key);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
        methodParam.setTypeIndexForCurrentLevel(0);
      }
      Object convertedKey = convertIfNecessary(keyedPropertyName, null, key, keyType, typeDescriptor);
      if (methodParam != null) {
        methodParam.setTypeIndexForCurrentLevel(1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.