From: Bill H. <bi...@lo...> - 2004-03-24 21:20:23
|
Bertrand, On Wed, 2004-03-24 at 21:12, Bertrand Renuart wrote: > You point to another (easier) solution: the ability for people to *inject* > interfaces in our proxy class. > > They could define an interface containing the signature of the methods they > want from the vendor jdbc connection (rs and st as well); then register this > extra interface with proxool. 1. <proxool> <alias>my-oracle-pool</alias> <driver-url>jdbc:oracle...</driver-url> <driver-class>oracle.jdbc.OracleDriver</driver-class> <connection-interface> com.outside.jdbc.StrangeConnectionIF </connection-interface> </proxool> 2. public interface StrangeConnectionIF { public void foo(); } 3. Connection c = DriverManager.getConnection(url, properties); StrangeConnectionIF sc = (StrangeConnectionIF) c; sc.foo(); Like that? - Bill |