com.atlassian.crowd.console.interceptor
Class CrowdXWorkTransactionInterceptor

java.lang.Object
  extended by com.atlassian.crowd.xwork.interceptors.XWorkTransactionInterceptor
      extended by com.atlassian.crowd.console.interceptor.CrowdXWorkTransactionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, Serializable

public class CrowdXWorkTransactionInterceptor
extends XWorkTransactionInterceptor

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

See Also:
Serialized Form

Constructor Summary
CrowdXWorkTransactionInterceptor()
           
 
Method Summary
 org.springframework.transaction.PlatformTransactionManager getTransactionManager()
          Template method for retrieving the transaction manager for the current application.
protected  boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
          Determine if a certain action should be wrapped in a transaction.
 
Methods inherited from class com.atlassian.crowd.xwork.interceptors.XWorkTransactionInterceptor
destroy, init, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdXWorkTransactionInterceptor

public CrowdXWorkTransactionInterceptor()
Method Detail

getTransactionManager

public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
Description copied from class: XWorkTransactionInterceptor
Template method for retrieving the transaction manager for the current application.

Specified by:
getTransactionManager in class XWorkTransactionInterceptor
Returns:
the transaction manager for this application

shouldIntercept

protected boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
Description copied from class: XWorkTransactionInterceptor
Determine if a certain action should be wrapped in a transaction. Applications should override this method if they want to prevent specific actions from being intercepted, or want to prevent transactions from being created before the system is fully set up.

Specified by:
shouldIntercept in class XWorkTransactionInterceptor
Parameters:
actionInvocation - the action being invoked
Returns:
true if the action should be wrapped in a transaction


Copyright © 2014 Atlassian. All Rights Reserved.