Tomcat源代码学习日记(2004-10-06 1:12)

类别:软件工程 点击:0 评论:0 推荐:

Tomcat的类载入

 private void initClassLoaders() {
        try {
            ClassLoaderFactory.setDebug(debug);
            commonLoader = createClassLoader("common", null);
            catalinaLoader = createClassLoader("server", commonLoader);
            sharedLoader = createClassLoader("shared", commonLoader);
        } catch (Throwable t) {
            log("Class loader creation threw exception", t);
            System.exit(1);
        }
    }
建立三个类加载器
 protected ClassLoader commonLoader = null;
    protected ClassLoader catalinaLoader = null;
    protected ClassLoader sharedLoader = null;

本文地址:http://com.8s8s.com/it/it35275.htm