Implementing a custom class loader
Custom class loaders must extend the java.lang.ClassLoader
abstract class and override its abstract findClass()
method. Tomcat's WebappClassLoader
overrides java.lang.URLClassLoader
instead, which provides reasonable implementations for every method.
In this section, we will take a closer look at what makes a class loader tick.