Package org.apache.catalina.loader
Class JdbcLeakPrevention
- java.lang.Object
-
- org.apache.catalina.loader.JdbcLeakPrevention
-
public class JdbcLeakPrevention extends java.lang.Object
This class is loaded byWebappClassLoaderBase
to enable it to deregister JDBC drivers forgotten by the web application. There are some classloading hacks involved - seeWebappClassLoaderBase.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 byWebappClassLoaderBase
, it cannot refer to any internal Tomcat classes as that will cause the security manager to complain.
-
-
Constructor Summary
Constructors Constructor Description JdbcLeakPrevention()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
clearJdbcDriverRegistrations()
-