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

manuallyRegisteredSingletonBindsAsJavaBean() — spring-boot Function Reference

Architecture documentation for the manuallyRegisteredSingletonBindsAsJavaBean() function in ConfigurationPropertiesBeanFactoryInitializationAotProcessorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  65f6adff_8c74_5c59_c0ac_a04c94decfc6["manuallyRegisteredSingletonBindsAsJavaBean()"]
  d6ef99da_7e37_02cd_f749_72585834dbc8["process()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| d6ef99da_7e37_02cd_f749_72585834dbc8
  433fe623_b34a_4894_0077_d30923119ba2["assertThat()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| 433fe623_b34a_4894_0077_d30923119ba2
  c23a4cdf_6a63_14a9_92cd_deb5bbba5a91["singleBindable()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| c23a4cdf_6a63_14a9_92cd_deb5bbba5a91
  7636f524_bbb6_8f0e_30fa_f4d76d7a2750["hasBindMethod()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| 7636f524_bbb6_8f0e_30fa_f4d76d7a2750
  ebbeee22_9e94_47a0_ffca_817aecbf9c04["hasType()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| ebbeee22_9e94_47a0_ffca_817aecbf9c04
  af2d813a_b5d7_b137_cd2d_15145863e7a2["typeHints()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| af2d813a_b5d7_b137_cd2d_15145863e7a2
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  65f6adff_8c74_5c59_c0ac_a04c94decfc6 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  style 65f6adff_8c74_5c59_c0ac_a04c94decfc6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanFactoryInitializationAotProcessorTests.java lines 68–77

	@Test
	void manuallyRegisteredSingletonBindsAsJavaBean() {
		DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();
		beanFactory.registerSingleton("test", new SampleProperties());
		ConfigurationPropertiesReflectionHintsContribution contribution = process(beanFactory);
		assertThat(contribution).isNotNull();
		assertThat(singleBindable(contribution)).hasBindMethod(BindMethod.JAVA_BEAN).hasType(SampleProperties.class);
		assertThat(typeHints(contribution).map(TypeHint::getType))
			.containsExactly(TypeReference.of(SampleProperties.class));
	}

Domain

Subdomains

Frequently Asked Questions

What does manuallyRegisteredSingletonBindsAsJavaBean() do?
manuallyRegisteredSingletonBindsAsJavaBean() is a function in the spring-boot codebase.
What does manuallyRegisteredSingletonBindsAsJavaBean() call?
manuallyRegisteredSingletonBindsAsJavaBean() calls 7 function(s): assertThat, hasBindMethod, hasType, of, process, singleBindable, typeHints.

Analyze Your Own Codebase

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

Try Supermodel Free