private static class OpenEntityManagerInViewFilter.EntityManagerBindingCallableInterceptor extends CallableProcessingInterceptorAdapter
EntityManager
to the current thread.Modifier and Type | Field and Description |
---|---|
private EntityManagerFactory |
emFactory |
private EntityManagerHolder |
emHolder |
RESPONSE_HANDLED, RESULT_NONE
Constructor and Description |
---|
OpenEntityManagerInViewFilter.EntityManagerBindingCallableInterceptor(EntityManagerFactory emFactory,
EntityManagerHolder emHolder) |
Modifier and Type | Method and Description |
---|---|
private void |
initializeThread() |
<T> void |
postProcess(NativeWebRequest request,
java.util.concurrent.Callable<T> task,
java.lang.Object concurrentResult)
This implementation is empty.
|
<T> void |
preProcess(NativeWebRequest request,
java.util.concurrent.Callable<T> task)
This implementation is empty.
|
afterCompletion, beforeConcurrentHandling, handleTimeout
private final EntityManagerFactory emFactory
private final EntityManagerHolder emHolder
public OpenEntityManagerInViewFilter.EntityManagerBindingCallableInterceptor(EntityManagerFactory emFactory, EntityManagerHolder emHolder)
public <T> void preProcess(NativeWebRequest request, java.util.concurrent.Callable<T> task)
CallableProcessingInterceptorAdapter
preProcess
in interface CallableProcessingInterceptor
preProcess
in class CallableProcessingInterceptorAdapter
request
- the current requesttask
- the task for the current async requestpublic <T> void postProcess(NativeWebRequest request, java.util.concurrent.Callable<T> task, java.lang.Object concurrentResult)
CallableProcessingInterceptorAdapter
postProcess
in interface CallableProcessingInterceptor
postProcess
in class CallableProcessingInterceptorAdapter
request
- the current requesttask
- the task for the current async requestconcurrentResult
- the result of concurrent processing, which could
be a Throwable
if the Callable
raised an exceptionprivate void initializeThread()