Example usage for org.springframework.web.context.request.async DeferredResultProcessingInterceptor getClass

List of usage examples for org.springframework.web.context.request.async DeferredResultProcessingInterceptor getClass

Introduction

In this page you can find the example usage for org.springframework.web.context.request.async DeferredResultProcessingInterceptor getClass.

Prototype

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

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.web.context.request.async.WebAsyncManager.java

/**
 * Register one or more {@link DeferredResultProcessingInterceptor}s without a specified key.
 * The default key is derived from the interceptor class name and hash code.
 * @param interceptors one or more interceptors to register
 *///from   w w  w  .j av a2s  . c o m
public void registerDeferredResultInterceptors(DeferredResultProcessingInterceptor... interceptors) {
    Assert.notNull(interceptors, "A DeferredResultProcessingInterceptor is required");
    for (DeferredResultProcessingInterceptor interceptor : interceptors) {
        String key = interceptor.getClass().getName() + ":" + interceptor.hashCode();
        this.deferredResultInterceptors.put(key, interceptor);
    }
}