Top Description Constructors Methods
org.apache.catalina.loader

public Class JdbcLeakPrevention

extends Object
Class Inheritance
Imports
java.sql.Driver, .DriverManager, .SQLException, java.util.ArrayList, .Enumeration, .HashSet, .List, .Set

This class is loaded by WebappClassLoaderBase to enable it to deregister JDBC drivers forgotten by the web application. There are some classloading hacks involved - see WebappClassLoaderBase#clearReferences() for details - but the short version is do not just create a new instance of this class with the new keyword. Since this class is loaded by WebappClassLoaderBase, it cannot refer to any internal Tomcat classes as that will cause the security manager to complain.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JdbcLeakPreventionback to summary
public JdbcLeakPrevention()

Method Detail

clearJdbcDriverRegistrationsback to summary
public List<String> clearJdbcDriverRegistrations() throws SQLException