org.sonar.batch.bootstrap
Class JdbcLeakPrevention
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcLeakPrevention
public JdbcLeakPrevention()
clearJdbcDriverRegistrations
public List<String> clearJdbcDriverRegistrations()
throws SQLException
- Returns:
- list of names of deregistered drivers
- Throws:
SQLException
Copyright © 2009-2012 SonarSource. All Rights Reserved.