Example usage for org.springframework.boot SpringApplicationRunListener contextLoaded

List of usage examples for org.springframework.boot SpringApplicationRunListener contextLoaded

Introduction

In this page you can find the example usage for org.springframework.boot SpringApplicationRunListener contextLoaded.

Prototype

default void contextLoaded(ConfigurableApplicationContext context) 

Source Link

Document

Called once the application context has been loaded but before it has been refreshed.

Usage

From source file:org.springframework.boot.SpringApplicationRunListeners.java

public void contextLoaded(ConfigurableApplicationContext context) {
    for (SpringApplicationRunListener listener : this.listeners) {
        listener.contextLoaded(context);
    }/*from w ww  .ja  va 2s  . c  om*/
}