当前页面:
在线文档首页 >
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
- 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 internalInvoke method 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:
getName
in 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:
invoke
in interface org.jboss.aop.advice.Interceptor
- Throws:
Throwable
internalInvoke
protected Object internalInvoke(org.jboss.aop.joinpoint.Invocation invocation)
throws Throwable
- The
internalInvoke
method chooses the TxSupport
subclass depending on the methods transaction support, then
delegates the server side tx handing to it.
- Parameters:
invocation
- an Invocation
value
- Returns:
- an
Object
value
- 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.