Class ConfluenceXWorkTransactionInterceptor
java.lang.Object
com.atlassian.struts.interceptor.XWorkTransactionInterceptor
com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
com.atlassian.confluence.setup.struts.ConfluenceXWorkTransactionInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
,org.apache.struts2.interceptor.ConditionalInterceptor
,org.apache.struts2.interceptor.Interceptor
public class ConfluenceXWorkTransactionInterceptor
extends com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
An interceptor that wraps the action execution in a single Hibernate transaction.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.Interceptor
com.opensymphony.xwork2.interceptor.Interceptor.LegacyAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.transaction.PlatformTransactionManager
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 :)Methods inherited from class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
intercept, intercept, shouldIntercept
Methods inherited from class com.atlassian.struts.interceptor.XWorkTransactionInterceptor
destroy, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.struts2.interceptor.Interceptor
destroy, init
-
Constructor Details
-
ConfluenceXWorkTransactionInterceptor
public ConfluenceXWorkTransactionInterceptor()
-
-
Method Details
-
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()- Specified by:
getTransactionManager
in classcom.atlassian.struts.interceptor.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
-