Home / Function/ parseConstructorParameters() — spring-boot Function Reference

parseConstructorParameters() — spring-boot Function Reference

Architecture documentation for the parseConstructorParameters() function in ValueObjectBinder.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  a9db6bd8_383a_89b8_9f12_a438fb821df8["parseConstructorParameters()"]
  94235fe8_bed0_cb46_b2bd_d850d45e07f1["parseConstructorParameters()"]
  94235fe8_bed0_cb46_b2bd_d850d45e07f1 -->|calls| a9db6bd8_383a_89b8_9f12_a438fb821df8
  94235fe8_bed0_cb46_b2bd_d850d45e07f1["parseConstructorParameters()"]
  a9db6bd8_383a_89b8_9f12_a438fb821df8 -->|calls| 94235fe8_bed0_cb46_b2bd_d850d45e07f1
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  a9db6bd8_383a_89b8_9f12_a438fb821df8 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  f18d8756_69a1_0c07_e009_fbc8c0b6231e["ConstructorParameter()"]
  a9db6bd8_383a_89b8_9f12_a438fb821df8 -->|calls| f18d8756_69a1_0c07_e009_fbc8c0b6231e
  847b6442_acd0_02e3_22e0_082e237b5447["get()"]
  a9db6bd8_383a_89b8_9f12_a438fb821df8 -->|calls| 847b6442_acd0_02e3_22e0_082e237b5447
  style a9db6bd8_383a_89b8_9f12_a438fb821df8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/ValueObjectBinder.java lines 345–361

		private static List<ConstructorParameter> parseConstructorParameters(Constructor<?> constructor,
				ResolvableType type, @Nullable String[] names) {
			Parameter[] parameters = constructor.getParameters();
			List<ConstructorParameter> result = new ArrayList<>(parameters.length);
			for (int i = 0; i < parameters.length; i++) {
				String name = MergedAnnotations.from(parameters[i])
					.get(Name.class)
					.getValue(MergedAnnotation.VALUE, String.class)
					.orElse(names[i]);
				ResolvableType parameterType = ResolvableType.forMethodParameter(new MethodParameter(constructor, i),
						type);
				Annotation[] annotations = parameters[i].getDeclaredAnnotations();
				Assert.state(name != null, "'name' must not be null");
				result.add(new ConstructorParameter(name, parameterType, annotations));
			}
			return Collections.unmodifiableList(result);
		}

Domain

Subdomains

Calls

Frequently Asked Questions

What does parseConstructorParameters() do?
parseConstructorParameters() is a function in the spring-boot codebase.
What does parseConstructorParameters() call?
parseConstructorParameters() calls 4 function(s): ConstructorParameter, add, get, parseConstructorParameters.
What calls parseConstructorParameters()?
parseConstructorParameters() is called by 1 function(s): parseConstructorParameters.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free