Class ProxyConnection

java.lang.Object
clazzfish.jdbc.ProxyConnection
All Implemented Interfaces:
InvocationHandler

public class ProxyConnection extends Object implements InvocationHandler
This is a dynamic proxy for a JDBC connection which monitors together with the ConnectionMonitor the different newInstance() and close() call.

Note: This class was moved in 2018 from the PatternTesting project to here.

Since:
0.9
Author:
oliver (ob@aosd.de)
  • Constructor Details

    • ProxyConnection

      protected ProxyConnection(Connection connection)
      Instantiates a new proxy connection. This constructor is called from newInstance(Connection) which is of no interest for us. We want to store the real caller so we ignore the ProxyConnection class but also the ProxyDriver class (ProxyDriver also calls this constructor indirectly) and other classes.
      Parameters:
      connection - the connection where this class acts as proxy
  • Method Details