Add config options for MVC async interceptors
The MVC namespace and the MVC Java config now allow configuring CallableProcessingInterceptor and DeferredResultProcessingInterceptor instances. Issue: SPR-9914
This commit is contained in:
@@ -175,6 +175,11 @@ public final class WebAsyncManager {
|
||||
this.callableInterceptors.put(key, interceptor);
|
||||
}
|
||||
|
||||
public void registerAllCallableInterceptors(Map<Object, CallableProcessingInterceptor> interceptors) {
|
||||
Assert.notNull(interceptors);
|
||||
this.callableInterceptors.putAll(interceptors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a {@link DeferredResultProcessingInterceptor} that will be
|
||||
* applied when concurrent request handling with a {@link DeferredResult}
|
||||
@@ -188,6 +193,11 @@ public final class WebAsyncManager {
|
||||
this.deferredResultInterceptors.put(key, interceptor);
|
||||
}
|
||||
|
||||
public void registerAllDeferredResultInterceptors(Map<Object, DeferredResultProcessingInterceptor> interceptors) {
|
||||
Assert.notNull(interceptors);
|
||||
this.deferredResultInterceptors.putAll(interceptors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear {@linkplain #getConcurrentResult() concurrentResult} and
|
||||
* {@linkplain #getConcurrentResultContext() concurrentResultContext}.
|
||||
|
||||
Reference in New Issue
Block a user