com.jolbox.bonecp
Class MemorizeTransactionProxy

java.lang.Object
  extended by com.jolbox.bonecp.MemorizeTransactionProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class MemorizeTransactionProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

This code takes care of recording and playing back of transactions (when a failure occurs). The idea behind this is to wrap a connection or statement with proxies and log all method calls. When a failure occurs, thrash the inner connection, obtain a new one and play back the previously recorded methods.

Author:
Wallace

Constructor Summary
MemorizeTransactionProxy()
          Default constructor.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemorizeTransactionProxy

public MemorizeTransactionProxy()
Default constructor.

Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2009-2011 JolBox. All Rights Reserved.