当前页面: 
在线文档首页 > 
JBoss 4.0.1 sp1 aspects  API Documentation 英文版文档
TxInterceptor (JBoss Aspects API) - JBoss 4.0.1 sp1 aspects  API Documentation 英文版文档
org.jboss.aspects.tx
Class TxInterceptor
java.lang.Object
   org.jboss.aspects.tx.TxInterceptor
org.jboss.aspects.tx.TxInterceptor
- All Implemented Interfaces: 
- org.jboss.aop.advice.Interceptor
- public class TxInterceptor- extends Object- implements org.jboss.aop.advice.Interceptor
This interceptor handles transactions for AOP
- Version:
- $Revision: 1.4 $
- Author:
- David Jencks, Bill Burke
 
 
| Method Summary | 
|  String | getName()
 | 
| protected  Object | internalInvoke(org.jboss.aop.joinpoint.Invocation invocation)The
 internalInvokemethod chooses the TxSupport
 subclass depending on the methods transaction support, then
 delegates the server side tx handing to it. | 
|  Object | invoke(org.jboss.aop.joinpoint.Invocation invocation)This method does calls internalInvoke up to the specified count of retries.
 | 
| protected  String | resolveTxType(org.jboss.aop.joinpoint.Invocation invocation)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MAX_RETRIES
public static int MAX_RETRIES
random
public static Random random
log
protected org.jboss.logging.Logger log
- Logging instance
 
 
TxInterceptor
public TxInterceptor(TransactionManager tm)
getName
public String getName()
- 
- Specified by:
- getNamein interface- org.jboss.aop.advice.Interceptor
 
- 
 
invoke
public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
              throws Throwable
- This method does calls internalInvoke up to the specified count of retries.
 
- 
- Specified by:
- invokein interface- org.jboss.aop.advice.Interceptor
 
- 
- Throws:
- Throwable
 
internalInvoke
protected Object internalInvoke(org.jboss.aop.joinpoint.Invocation invocation)
                         throws Throwable
- The internalInvokemethod chooses the TxSupport
 subclass depending on the methods transaction support, then
 delegates the server side tx handing to it.
 
- 
 
- 
- Parameters:
- invocation- an- Invocationvalue
- Returns:
- an Objectvalue
- Throws:
- Exception- if an error occurs
- Throwable
 
resolveTxType
protected String resolveTxType(org.jboss.aop.joinpoint.Invocation invocation)
- 
 
- 
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.