Package jetbrick.template

Examples of jetbrick.template.JetConfig


        if (webappdir != null) {
            // 在 weblogic 中以 war 方式部署的时候,无法使用 getRealPath 方法.
            System.setProperty("webapp.dir", webappdir);
        }

        JetConfig config = new JetConfig();
        config.load(JetConfig.TEMPLATE_LOADER, WebResourceLoader.class.getName());
        config.load(JetConfig.TEMPLATE_PATH, "/"); // 默认 Webapp 根目录

        String location = sc.getInitParameter(CONFIG_LOCATION);
        if (location != null && location.length() > 0) {
            config.loadSerlvetResource(sc, location);
        } else {
            config.loadClasspath(JetConfig.DEFAULT_CONFIG_FILE);
        }

        engine = new JetWebEngine(config, sc);
    }
View Full Code Here

TOP

Related Classes of jetbrick.template.JetConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.