Class 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 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.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 class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor