Example usage for org.springframework.boot SpringApplicationRunListener contextPrepared

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

Introduction

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

Prototype

default void contextPrepared(ConfigurableApplicationContext context) 

Source Link

Document

Called once the ApplicationContext has been created and prepared, but before sources have been loaded.

Usage

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

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