Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » [javadoc | source]
org.jboss.ejb.plugins
public class: EntityReentranceInterceptor [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.AbstractInterceptor
      org.jboss.ejb.plugins.EntityReentranceInterceptor

All Implemented Interfaces:
    Interceptor

The role of this interceptor is to check for reentrancy. Per the spec, throw an exception if instance is not marked as reentrant. We do not check to see if same Tx is accessing object at the same time as we assume that any transactional locks will handle this.

WARNING: critical code, get approval from senior developers before changing.

Field Summary
protected  boolean reentrant     
Fields inherited from org.jboss.ejb.plugins.AbstractInterceptor:
nextInterceptor,  log,  container
Method from org.jboss.ejb.plugins.EntityReentranceInterceptor Summary:
invoke,   isReentrantMethod,   isTxExpired,   setContainer
Methods from org.jboss.ejb.plugins.AbstractInterceptor:
create,   destroy,   getContainer,   getNext,   invoke,   invokeHome,   isAppException,   setContainer,   setNext,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.EntityReentranceInterceptor Detail:
 public Object invoke(Invocation mi) throws Exception 
 protected boolean isReentrantMethod(Invocation mi) 
 protected boolean isTxExpired(Transaction miTx) throws Exception 
 public  void setContainer(Container container)