org.jboss.ejb3.tx
Class RetryingInterceptor

java.lang.Object
  extended by org.jboss.ejb3.tx.AbstractInterceptor
      extended by org.jboss.ejb3.tx.RetryingInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public class RetryingInterceptor
extends AbstractInterceptor

Retry an operation if the transaction is rolled back.


Constructor Summary
RetryingInterceptor()
           
 
Method Summary
protected
<A extends java.lang.annotation.Annotation>
A
getAnnotation(org.jboss.aop.joinpoint.Invocation invocation, java.lang.reflect.Method method, java.lang.Class<A> annotationType)
           
 java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class org.jboss.ejb3.tx.AbstractInterceptor
getContainer, getName, resolveAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryingInterceptor

public RetryingInterceptor()
Method Detail

getAnnotation

protected <A extends java.lang.annotation.Annotation> A getAnnotation(org.jboss.aop.joinpoint.Invocation invocation,
                                                                      java.lang.reflect.Method method,
                                                                      java.lang.Class<A> annotationType)

invoke

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