Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.ejb
Class ReentrantCallsShieldInterceptor

java.lang.Object
  extended by 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

Constructor Summary
ReentrantCallsShieldInterceptor()
           
 
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
 

Constructor Detail

ReentrantCallsShieldInterceptor

public ReentrantCallsShieldInterceptor()
Method Detail

intercept

public java.lang.Object intercept(javax.interceptor.InvocationContext ctx)
                           throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.