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

disabled() — spring-boot Function Reference

Architecture documentation for the disabled() function in AnsiOutputApplicationListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  38d08f13_880b_ab65_5275_ce0165a05de1["disabled()"]
  16b51c89_dde4_bfa7_4c6d_cd813dd33ba3["SpringApplication()"]
  38d08f13_880b_ab65_5275_ce0165a05de1 -->|calls| 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3
  9fc735d3_f2de_a77c_c1a1_abf218992bd6["setWebApplicationType()"]
  38d08f13_880b_ab65_5275_ce0165a05de1 -->|calls| 9fc735d3_f2de_a77c_c1a1_abf218992bd6
  0307cf8d_fc8f_0c1f_27ae_adc000d77a4c["setDefaultProperties()"]
  38d08f13_880b_ab65_5275_ce0165a05de1 -->|calls| 0307cf8d_fc8f_0c1f_27ae_adc000d77a4c
  3dc349ea_ef9e_d930_1428_447e88bfd092["get()"]
  38d08f13_880b_ab65_5275_ce0165a05de1 -->|calls| 3dc349ea_ef9e_d930_1428_447e88bfd092
  89cfa04a_3922_680e_945d_5b4338252cc7["run()"]
  38d08f13_880b_ab65_5275_ce0165a05de1 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7
  style 38d08f13_880b_ab65_5275_ce0165a05de1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/support/AnsiOutputApplicationListenerTests.java lines 71–80

	@Test
	void disabled() {
		SpringApplication application = new SpringApplication(Config.class);
		application.setWebApplicationType(WebApplicationType.NONE);
		Map<String, Object> props = new HashMap<>();
		props.put("spring.output.ansi.enabled", "never");
		application.setDefaultProperties(props);
		this.context = application.run();
		assertThat(AnsiOutputEnabledValue.get()).isEqualTo(Enabled.NEVER);
	}

Domain

Subdomains

Frequently Asked Questions

What does disabled() do?
disabled() is a function in the spring-boot codebase.
What does disabled() call?
disabled() calls 5 function(s): SpringApplication, get, run, setDefaultProperties, setWebApplicationType.

Analyze Your Own Codebase

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

Try Supermodel Free