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.

Author:
Bill Burke

Field Summary
protected  boolean retainIfException
           
 
Constructor Summary
StatefulRemoveInterceptor(boolean removeOnException)
           
 
Method Summary
 String getName()
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
static boolean isApplicationException(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, 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 String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor
Overrides:
getName in class AbstractInterceptor

invoke

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

retainIfException

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

isApplicationException

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

removeSession

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.