org.jboss.ejb3.stateful
Class StatefulRemoveInterceptor

java.lang.Object
  extended by org.jboss.ejb3.aop.AbstractInterceptor
      extended by org.jboss.ejb3.stateful.StatefulRemoveInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public class StatefulRemoveInterceptor
extends AbstractInterceptor

Handles @Remove on a Stateful bean.


Field Summary
protected  boolean retainIfException
           
 
Constructor Summary
StatefulRemoveInterceptor(boolean removeOnException)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
static boolean isApplicationException(java.lang.Throwable t, org.jboss.aop.joinpoint.MethodInvocation invocation)
           
protected  void removeSession(org.jboss.aop.joinpoint.Invocation invocation, boolean exceptionThrown)
           
protected static boolean retainIfException(boolean retainIfException, java.lang.Throwable t, org.jboss.aop.joinpoint.MethodInvocation invocation)
           
 
Methods inherited from class org.jboss.ejb3.aop.AbstractInterceptor
getEJBContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

retainIfException

protected boolean retainIfException
Constructor Detail

StatefulRemoveInterceptor

public StatefulRemoveInterceptor(boolean removeOnException)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor
Overrides:
getName in class AbstractInterceptor

invoke

public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

retainIfException

protected static boolean retainIfException(boolean retainIfException,
                                           java.lang.Throwable t,
                                           org.jboss.aop.joinpoint.MethodInvocation invocation)

isApplicationException

public static boolean isApplicationException(java.lang.Throwable t,
                                             org.jboss.aop.joinpoint.MethodInvocation invocation)

removeSession

protected void removeSession(org.jboss.aop.joinpoint.Invocation invocation,
                             boolean exceptionThrown)
                      throws java.lang.Throwable
Throws:
java.lang.Throwable