org.nuxeo.ecm.core.api.ejb
Class ReentrantCallsShieldInterceptor
java.lang.Object
org.nuxeo.ecm.core.api.ejb.ReentrantCallsShieldInterceptor
public class ReentrantCallsShieldInterceptor
- extends java.lang.Object
This interceptor is used to detect reentrant calls to DocumentManagerBean.
In case of reentrancy it store the local CoreSession instance in a thread local that is must be used
by all the code using CoreSession withing the scope of the current call.
Typically, AbstractSession, EventHandlers and DocumentModelImpl may use the CoreSession while current thread
is processing a call to DocumentManagerBean.
Thanks to the threadlocal Local Session, the call can be nested without raising the ConcurrentAccessException
- Author:
- tiry
Method Summary |
java.lang.Object |
intercept(javax.interceptor.InvocationContext ctx)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReentrantCallsShieldInterceptor
public ReentrantCallsShieldInterceptor()
intercept
public java.lang.Object intercept(javax.interceptor.InvocationContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.