Example usage for org.springframework.core.codec Decoder getClass

List of usage examples for org.springframework.core.codec Decoder getClass

Introduction

In this page you can find the example usage for org.springframework.core.codec Decoder getClass.

Prototype

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

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.http.codec.DecoderHttpMessageReader.java

private void initLogger(Decoder<T> decoder) {
    if (decoder instanceof AbstractDecoder
            && decoder.getClass().getPackage().getName().startsWith("org.springframework.core.codec")) {

        Log logger = HttpLogging.forLog(((AbstractDecoder) decoder).getLogger());
        ((AbstractDecoder) decoder).setLogger(logger);
    }/*from   w w  w  .j  a  v a2 s  .  com*/
}