org.sonar.batch.bootstrap
Class JdbcLeakPrevention

java.lang.Object
  extended by org.sonar.batch.bootstrap.JdbcLeakPrevention

public class JdbcLeakPrevention
extends Object

Companion of JdbcDriverHolder and allows it to deregister JDBC drivers.

Some hacks are involved in the loading of the class - see JdbcDriverHolder.stop(), so this class can refer to classes only from java.* package and must not be referred from other classes. Placement and naming of this class and methods are very important, since it loaded and invoked via reflection.


Constructor Summary
JdbcLeakPrevention()
           
 
Method Summary
 List<String> unregisterDrivers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcLeakPrevention

public JdbcLeakPrevention()
Method Detail

unregisterDrivers

public List<String> unregisterDrivers()
                               throws SQLException
Returns:
names of the drivers that have been unregistered
Throws:
SQLException


Copyright © 2009–2015 SonarSource. All rights reserved.