org.jboss.ejb3.tx
Class BMTInterceptor
java.lang.Object
org.jboss.ejb3.tx.AbstractInterceptor
org.jboss.ejb3.tx.BMTInterceptor
- All Implemented Interfaces:
- org.jboss.aop.advice.Interceptor
- Direct Known Subclasses:
- StatefulBMTInterceptor, StatelessBMTInterceptor
public abstract class BMTInterceptor
- extends AbstractInterceptor
Comment
|
Field Summary |
protected javax.transaction.TransactionManager |
tm
|
|
Constructor Summary |
protected |
BMTInterceptor(javax.transaction.TransactionManager tm)
|
|
Method Summary |
protected void |
handleException(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Exception ex)
Checks if the passed exception is an application exception. |
protected abstract java.lang.Object |
handleInvocation(org.jboss.aop.joinpoint.Invocation invocation)
|
java.lang.Object |
invoke(org.jboss.aop.joinpoint.Invocation invocation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tm
protected final javax.transaction.TransactionManager tm
BMTInterceptor
protected BMTInterceptor(javax.transaction.TransactionManager tm)
handleInvocation
protected abstract java.lang.Object handleInvocation(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
invoke
public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
handleException
protected void handleException(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Exception ex)
throws java.lang.Exception
- Checks if the passed exception is an application exception. If yes, then throws back the
exception as-is. Else, wraps the exception in a
EJBException and throws the EJBException
- Parameters:
ex - The exception to handleinvocation - The invocation
- Throws:
java.lang.Exception - Either the passed exception or an EJBException