Class CrowdXWorkTransactionInterceptor
java.lang.Object
com.atlassian.crowd.xwork.interceptors.XWorkTransactionInterceptor
com.atlassian.crowd.console.interceptor.CrowdXWorkTransactionInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
An interceptor that wraps the action execution in a single Hibernate transaction.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.transaction.PlatformTransactionManager
Template method for retrieving the transaction manager for the current application.protected boolean
shouldIntercept
(com.opensymphony.xwork2.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
-
Constructor Details
-
CrowdXWorkTransactionInterceptor
public CrowdXWorkTransactionInterceptor()
-
-
Method Details
-
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 classXWorkTransactionInterceptor
- Returns:
- the transaction manager for this application
-
shouldIntercept
protected boolean shouldIntercept(com.opensymphony.xwork2.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 classXWorkTransactionInterceptor
- Parameters:
actionInvocation
- the action being invoked- Returns:
- true if the action should be wrapped in a transaction
-