protected Class findClass(String className) throws ClassNotFoundException
{
   byte[] byte_code = loadBytesFromMySource(className);
   if (byte_code == null)
     throw new ClassNotFoundException(className);
   return defineClass(byte_code, ...);
}

Example 1: An implementation of the method findClass in a customized class loader.

Back to Article