org.jboss.seam.interceptors
Class RollbackInterceptor

java.lang.Object
  extended by org.jboss.seam.interceptors.RollbackInterceptor

@Around(value=OutcomeInterceptor.class)
public class RollbackInterceptor
extends Object

Automatically sets transactions to rollback only.

Author:
Gavin King

Field Summary
protected  Component component
           
 
Constructor Summary
RollbackInterceptor()
           
 
Method Summary
 Object rollbackIfNecessary(javax.interceptor.InvocationContext invocation)
           
 void setComponent(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected Component component
Constructor Detail

RollbackInterceptor

public RollbackInterceptor()
Method Detail

rollbackIfNecessary

public Object rollbackIfNecessary(javax.interceptor.InvocationContext invocation)
                           throws Exception
Throws:
Exception

setComponent

public void setComponent(Component component)