com.atlassian.plugins.rest.common.transaction
Class TransactionInterceptor

java.lang.Object
  extended by com.atlassian.plugins.rest.common.transaction.TransactionInterceptor
All Implemented Interfaces:
ResourceInterceptor

public class TransactionInterceptor
extends java.lang.Object
implements ResourceInterceptor

Wraps the resource method call in a transaction via SAL's TransactionTemplate.

Since:
2.0

Constructor Summary
TransactionInterceptor(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
           
 
Method Summary
 void intercept(MethodInvocation invocation)
          Intercepts the method invocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionInterceptor

public TransactionInterceptor(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
Method Detail

intercept

public void intercept(MethodInvocation invocation)
               throws java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Description copied from interface: ResourceInterceptor
Intercepts the method invocation

Specified by:
intercept in interface ResourceInterceptor
Parameters:
invocation - Context information about the invocation
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 2014 Atlassian. All Rights Reserved.