com.atlassian.confluence.setup.webwork
Class ConfluenceXWorkTransactionInterceptor

java.lang.Object
  extended by com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
      extended by com.atlassian.confluence.setup.webwork.ConfluenceXWorkTransactionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor

public class ConfluenceXWorkTransactionInterceptor
extends com.atlassian.xwork.interceptors.XWorkTransactionInterceptor

An interceptor that wraps the action execution in a single Hibernate transaction.


Constructor Summary
ConfluenceXWorkTransactionInterceptor()
           
 
Method Summary
 org.springframework.transaction.PlatformTransactionManager getTransactionManager()
           
protected  boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
          We do not want to wrap an invocation in a transaction until we have a database to commit to :)
 
Methods inherited from class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
currentTransactionStatus, destroy, init, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceXWorkTransactionInterceptor

public ConfluenceXWorkTransactionInterceptor()
Method Detail

getTransactionManager

public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
Specified by:
getTransactionManager in class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor

shouldIntercept

protected boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
We do not want to wrap an invocation in a transaction until we have a database to commit to :)

Specified by:
shouldIntercept in class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor


Copyright © 2003-2014 Atlassian. All Rights Reserved.