Package org.eclipse.birt.report.engine.api

Examples of org.eclipse.birt.report.engine.api.EngineConfig


    public static synchronized IReportEngine getBirtEngine(ServletContext sc) {
        if (reportEngine == null) {
            LOG.info("开始初始化报表引擎");
            long start=System.currentTimeMillis();
            float total=(float)Runtime.getRuntime().totalMemory()/1000000;
            EngineConfig config = new EngineConfig();

            config.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, BirtReportEngine.class.getClassLoader());
            config.setEngineHome("");

            IPlatformContext context = new PlatformServletContext(sc);
            config.setPlatformContext(context);

            try {
                Platform.startup(config);
            } catch (BirtException e) {
                LOG.error("BIRT启动失败",e);
View Full Code Here

TOP

Related Classes of org.eclipse.birt.report.engine.api.EngineConfig

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.