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

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

Introduction

In this page you can find the example usage for org.springframework.web.context.request.async CallableProcessingInterceptor 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 a {@link CallableProcessingInterceptor} without a key.
 * The key is derived from the class name and hashcode.
 * @param interceptors one or more interceptors to register
 *///w w w .  j  a  v  a  2 s. c om
public void registerCallableInterceptors(CallableProcessingInterceptor... interceptors) {
    Assert.notNull(interceptors, "A CallableProcessingInterceptor is required");
    for (CallableProcessingInterceptor interceptor : interceptors) {
        String key = interceptor.getClass().getName() + ":" + interceptor.hashCode();
        this.callableInterceptors.put(key, interceptor);
    }
}