onApplicationEvent() — spring-boot Function Reference
Architecture documentation for the onApplicationEvent() function in AnsiOutputApplicationListener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2["onApplicationEvent()"] 4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7["getEnvironment()"] 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2 -->|calls| 4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7 c90d60de_6e4d_b157_5121_acbc78d427f0["get()"] 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 fb3d75bb_6522_f651_51c4_762d49251f21["setConsoleAvailable()"] 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2 -->|calls| fb3d75bb_6522_f651_51c4_762d49251f21 style 88b37f6d_3b94_0647_3a2a_eba6bf1ab9e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/support/AnsiOutputApplicationListener.java lines 39–46
@Override
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
ConfigurableEnvironment environment = event.getEnvironment();
Binder.get(environment)
.bind("spring.output.ansi.enabled", AnsiOutput.Enabled.class)
.ifBound(AnsiOutput::setEnabled);
AnsiOutput.setConsoleAvailable(environment.getProperty("spring.output.ansi.console-available", Boolean.class));
}
Domain
Subdomains
Calls
- bind()
- get()
- getEnvironment()
- setConsoleAvailable()
Source
Frequently Asked Questions
What does onApplicationEvent() do?
onApplicationEvent() is a function in the spring-boot codebase.
What does onApplicationEvent() call?
onApplicationEvent() calls 4 function(s): bind, get, getEnvironment, setConsoleAvailable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free