com.atlassian.crowd.console.interceptor
Class XWorkTransactionInterceptor
java.lang.Object
com.atlassian.crowd.console.interceptor.XWorkTransactionInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable
- Direct Known Subclasses:
- CrowdXWorkTransactionInterceptor
public abstract class XWorkTransactionInterceptor
- extends java.lang.Object
- implements com.opensymphony.xwork.interceptor.Interceptor
This class has been lifted from bucket since we really don't want a dependency on bucket!
- See Also:
- Serialized Form
|
Method Summary |
static org.springframework.transaction.TransactionStatus |
currentTransactionStatus()
Return the transaction status of the current method invocation. |
void |
destroy()
|
abstract org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
void |
init()
|
java.lang.String |
intercept(com.opensymphony.xwork.ActionInvocation invocation)
|
protected abstract boolean |
shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XWorkTransactionInterceptor
public XWorkTransactionInterceptor()
currentTransactionStatus
public static org.springframework.transaction.TransactionStatus currentTransactionStatus()
throws com.atlassian.core.exception.InfrastructureException
- Return the transaction status of the current method invocation.
Mainly intended for code that wants to set the current transaction
rollback-only but not throw an application exception.
- Throws:
com.atlassian.core.exception.InfrastructureException - if the invocation cannot be found, because the method was invoked
outside an AOP invocation context
destroy
public void destroy()
- Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor
init
public void init()
- Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor
getTransactionManager
public abstract org.springframework.transaction.PlatformTransactionManager getTransactionManager()
intercept
public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
throws java.lang.Exception
- Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
- Throws:
java.lang.Exception
shouldIntercept
protected abstract boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.