org.jboss.ejb3.stateful
Class StatefulRemoveInterceptor
java.lang.Object
org.jboss.ejb3.aop.AbstractInterceptor
org.jboss.ejb3.stateful.StatefulRemoveInterceptor
- All Implemented Interfaces:
- org.jboss.aop.advice.Interceptor
public class StatefulRemoveInterceptor
- extends AbstractInterceptor
Handles @Remove on a Stateful bean.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
retainIfException
protected boolean retainIfException
StatefulRemoveInterceptor
public StatefulRemoveInterceptor(boolean removeOnException)
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