com.github.drinkjava2.jtransactions.tinytx
Class TinyTx

java.lang.Object
  extended by com.github.drinkjava2.jtransactions.tinytx.TinyTx
All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor

public class TinyTx
extends Object
implements MethodInterceptor

A transaction MethodInterceptor

Since:
1.0.0
Author:
Yong Zhu

Constructor Summary
TinyTx()
           
TinyTx(DataSource ds)
           
TinyTx(DataSource ds, Integer transactionIsolation)
           
 
Method Summary
 Object invoke(MethodInvocation caller)
          Implement this method to perform extra treatments before and after the invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyTx

public TinyTx()

TinyTx

public TinyTx(DataSource ds)

TinyTx

public TinyTx(DataSource ds,
              Integer transactionIsolation)
Method Detail

invoke

public Object invoke(MethodInvocation caller)
Description copied from interface: MethodInterceptor
Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke Joinpoint.proceed().

Specified by:
invoke in interface MethodInterceptor
Parameters:
caller - the method invocation joinpoint
Returns:
the result of the call to Joinpoint.proceed(); might be intercepted by the interceptor


Copyright © 2018. All rights reserved.