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

onStart() — spring-boot Function Reference

Architecture documentation for the onStart() function in ConfigurationPropertiesBindHandlerAdvisorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  7a94de97_b4ea_af61_2597_867b7487b027["onStart()"]
  8d93b2ec_972a_7343_3135_e38778829fdd["onStart()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| 8d93b2ec_972a_7343_3135_e38778829fdd
  95d53ec6_a2dd_1fc9_611d_808816c964d7["getDefaultName()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| 95d53ec6_a2dd_1fc9_611d_808816c964d7
  efccbd4b_9f04_263f_e38e_f5db481dd03f["isBound()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| efccbd4b_9f04_263f_e38e_f5db481dd03f
  9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  2240d92d_9377_14f7_d46a_dbbc4937f5d8["get()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| 2240d92d_9377_14f7_d46a_dbbc4937f5d8
  style 7a94de97_b4ea_af61_2597_867b7487b027 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindHandlerAdvisorTests.java lines 131–142

		@Override
		public <T> @Nullable Bindable<T> onStart(ConfigurationPropertyName name, Bindable<T> target,
				BindContext context) {
			ConfigurationPropertyName defaultName = getDefaultName(name);
			if (defaultName != null) {
				BindResult<T> result = context.getBinder().bind(defaultName, target);
				if (result.isBound()) {
					return target.withExistingValue(result.get());
				}
			}
			return super.onStart(name, target, context);
		}

Domain

Subdomains

Frequently Asked Questions

What does onStart() do?
onStart() is a function in the spring-boot codebase.
What does onStart() call?
onStart() calls 5 function(s): get, getDefaultName, isBound, onStart, withExistingValue.

Analyze Your Own Codebase

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

Try Supermodel Free