Example usage for org.springframework.boot SpringApplication getClass

List of usage examples for org.springframework.boot SpringApplication getClass

Introduction

In this page you can find the example usage for org.springframework.boot SpringApplication getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.boot.context.initializer.LoggingApplicationContextInitializer.java

@Override
public void initialize(SpringApplication springApplication, String[] args) {
    if (System.getProperty("PID") == null) {
        System.setProperty("PID", getPid());
    }/*from   w w w .  j  ava  2s .  co  m*/
    LoggingSystem loggingSystem = LoggingSystem.get(springApplication.getClass().getClassLoader());
    loggingSystem.beforeInitialize();
}