Class ConfluenceStrutsTransactionInterceptor
java.lang.Object
com.atlassian.struts.interceptor.StrutsTransactionInterceptor
com.atlassian.confluence.setup.struts.ConfluenceStrutsTransactionInterceptor
- All Implemented Interfaces:
- Serializable,- org.apache.struts2.interceptor.ConditionalInterceptor,- org.apache.struts2.interceptor.Interceptor
public class ConfluenceStrutsTransactionInterceptor
extends com.atlassian.struts.interceptor.StrutsTransactionInterceptor
An interceptor that wraps the action execution in a single Hibernate transaction.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.transaction.PlatformTransactionManagerbooleanshouldIntercept(org.apache.struts2.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.struts.interceptor.StrutsTransactionInterceptordestroy, init, intercept
- 
Constructor Details- 
ConfluenceStrutsTransactionInterceptorpublic ConfluenceStrutsTransactionInterceptor()
 
- 
- 
Method Details- 
getTransactionManagerpublic org.springframework.transaction.PlatformTransactionManager getTransactionManager()- Specified by:
- getTransactionManagerin class- com.atlassian.struts.interceptor.StrutsTransactionInterceptor
 
- 
shouldInterceptpublic boolean shouldIntercept(org.apache.struts2.ActionInvocation invocation) We do not want to wrap an invocation in a transaction until we have a database to commit to :)- Specified by:
- shouldInterceptin interface- org.apache.struts2.interceptor.ConditionalInterceptor
- Specified by:
- shouldInterceptin class- com.atlassian.struts.interceptor.StrutsTransactionInterceptor
 
 
-