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

onApplicationEvent() — spring-boot Function Reference

Architecture documentation for the onApplicationEvent() function in SpringApplicationTests.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 1 called by 16

Entity Profile

Dependency Diagram

graph TD
  38fc4cf6_e1f4_234f_e57e_0772756d13fc["onApplicationEvent()"]
  f811e80c_11b4_38db_2437_4539adc9523c["onApplicationEvent()"]
  f811e80c_11b4_38db_2437_4539adc9523c -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  b11ad388_b681_3b52_baed_016a22e8f4d4["onApplicationEvent()"]
  b11ad388_b681_3b52_baed_016a22e8f4d4 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  5ecc6adb_d496_8797_1a2b_c5df6b8cd33f["eventsArePublishedInExpectedOrder()"]
  5ecc6adb_d496_8797_1a2b_c5df6b8cd33f -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  9ffb9e92_c54b_ebfd_f7a3_82fe19ab6463["runnersAreCalledAfterStartedIsLoggedAndBeforeApplicationReadyEventIsPublished()"]
  9ffb9e92_c54b_ebfd_f7a3_82fe19ab6463 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  db7389ac_2d26_e4a0_fb68_6eeb8c39dbed["applicationRunnerFailureCausesApplicationFailedEventToBePublished()"]
  db7389ac_2d26_e4a0_fb68_6eeb8c39dbed -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  4dcaa0e0_ed36_29c2_2f00_37f5d0414ad6["commandLineRunnerFailureCausesApplicationFailedEventToBePublished()"]
  4dcaa0e0_ed36_29c2_2f00_37f5d0414ad6 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  123c12cb_77be_bf51_ea96_b98bb34864b6["failureInReadyEventListenerDoesNotCausePublicationOfFailedEvent()"]
  123c12cb_77be_bf51_ea96_b98bb34864b6 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  4e3283b5_52d4_c315_3573_bebe76abeb91["failureInReadyEventListenerCloseApplicationContext()"]
  4e3283b5_52d4_c315_3573_bebe76abeb91 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  f7c8ec37_3c97_6476_abdd_c24f52dd1882["failureOnTheJvmLogsApplicationRunFailed()"]
  f7c8ec37_3c97_6476_abdd_c24f52dd1882 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  1d277bdf_524e_92c3_8da9_dc704be1dd2b["failureInANativeImageWritesFailureToSystemOut()"]
  1d277bdf_524e_92c3_8da9_dc704be1dd2b -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  1c4eed2b_535e_b8be_d572_95f403d15a8f["verifyRegisteredListenerSuccessEvents()"]
  1c4eed2b_535e_b8be_d572_95f403d15a8f -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  8a76d892_750c_1f63_9067_ea143b40f7b8["verifyRegisteredListenerFailedFromApplicationEvents()"]
  8a76d892_750c_1f63_9067_ea143b40f7b8 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  b90e76fe_cadd_114d_624f_8b9f0b4e9e2e["applicationListenerFromContextIsCalledWhenContextFailsRefreshBeforeListenerRegistration()"]
  b90e76fe_cadd_114d_624f_8b9f0b4e9e2e -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  3cdbfe01_6bba_4c8c_8def_ad75b757eecc["applicationListenerFromContextIsCalledWhenContextFailsRefreshAfterListenerRegistration()"]
  3cdbfe01_6bba_4c8c_8def_ad75b757eecc -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc
  style 38fc4cf6_e1f4_234f_e57e_0772756d13fc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1560–1564

		@Override
		@SuppressWarnings("unchecked")
		public void onApplicationEvent(ApplicationEvent event) {
			this.reference.set((E) event);
		}

Domain

Subdomains

Calls

  • onApplicationEvent()

Called By

Frequently Asked Questions

What does onApplicationEvent() do?
onApplicationEvent() is a function in the spring-boot codebase.
What does onApplicationEvent() call?
onApplicationEvent() calls 1 function(s): onApplicationEvent.
What calls onApplicationEvent()?
onApplicationEvent() is called by 16 function(s): applicationListenerFromContextIsCalledWhenContextFailsRefreshAfterListenerRegistration, applicationListenerFromContextIsCalledWhenContextFailsRefreshBeforeListenerRegistration, applicationRunnerFailureCausesApplicationFailedEventToBePublished, commandLineRunnerFailureCausesApplicationFailedEventToBePublished, eventsArePublishedInExpectedOrder, failureInANativeImageWritesFailureToSystemOut, failureInReadyEventListenerCloseApplicationContext, failureInReadyEventListenerDoesNotCausePublicationOfFailedEvent, and 8 more.

Analyze Your Own Codebase

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

Try Supermodel Free