Class ConfluenceXWorkTransactionInterceptor
- java.lang.Object
-
- com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
-
- com.atlassian.confluence.setup.struts.ConfluenceXWorkTransactionInterceptor
-
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
public class ConfluenceXWorkTransactionInterceptor extends com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
An interceptor that wraps the action execution in a single Hibernate transaction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfluenceXWorkTransactionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.transaction.PlatformTransactionManager
getTransactionManager()
protected boolean
shouldIntercept(com.opensymphony.xwork2.ActionInvocation invocation)
We do not want to wrap an invocation in a transaction until we have a database to commit to :)
-
-
-
Method Detail
-
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- Specified by:
getTransactionManager
in classcom.atlassian.xwork.interceptors.XWorkTransactionInterceptor
-
shouldIntercept
protected boolean shouldIntercept(com.opensymphony.xwork2.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 classcom.atlassian.xwork.interceptors.XWorkTransactionInterceptor
-
-