List of usage examples for org.springframework.web.context.request.async DeferredResultProcessingInterceptor getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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); } }