org.jboss.seam.transaction
Class RollbackInterceptor

java.lang.Object
  extended by org.jboss.seam.intercept.AbstractInterceptor
      extended by org.jboss.seam.transaction.RollbackInterceptor
All Implemented Interfaces:
Serializable, OptimizedInterceptor

@Interceptor(stateless=true)
public class RollbackInterceptor
extends AbstractInterceptor

Automatically sets the current transaction to rollback only when an exception is thrown.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
RollbackInterceptor()
           
 
Method Summary
 Object aroundInvoke(InvocationContext invocation)
           
 
Methods inherited from class org.jboss.seam.intercept.AbstractInterceptor
getComponent, setComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollbackInterceptor

public RollbackInterceptor()
Method Detail

aroundInvoke

@AroundInvoke
public Object aroundInvoke(InvocationContext invocation)
                    throws Exception
Throws:
Exception