ClassDefinition classDefinition = new HttpHandlerGenerator().generate(key, pathPrefix);
ClassLoader typeClassLoader = ClassLoaders.getClassLoader(key);
ByteCodeClassLoader classLoader = new ByteCodeClassLoader(typeClassLoader);
classLoader.addClass(classDefinition, key.getRawType());
return classLoader.loadClass(classDefinition.getClassName());
}
});
}
/**