Example usage for org.springframework.boot.web.servlet.context ServletWebServerInitializedEvent getSource

List of usage examples for org.springframework.boot.web.servlet.context ServletWebServerInitializedEvent getSource

Introduction

In this page you can find the example usage for org.springframework.boot.web.servlet.context ServletWebServerInitializedEvent getSource.

Prototype

@Override
public WebServer getSource() 

Source Link

Document

Access the source of the event (an WebServer ).

Usage

From source file:org.springframework.cloud.sleuth.zipkin2.DefaultEndpointLocator.java

@Override
public void onApplicationEvent(ServletWebServerInitializedEvent event) {
    this.port = event.getSource().getPort();
}