Package org.eclipse.birt.core.framework

Examples of org.eclipse.birt.core.framework.IPlatformContext


    this.servletContext = servletContext;
   
    Report report = ReportDAO.load(siteId, reportId);
    EngineConfig config = new EngineConfig();
    config.setEngineHome("");
    IPlatformContext context = new PlatformServletContext(servletContext);
    config.setPlatformContext(context);

    Platform.startup(config);
    IReportEngineFactory factory = (IReportEngineFactory) Platform
      .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
View Full Code Here


  public BirtProvider(DirectoryProvider directoryProvider)
  {
      PlatformConfig platformConfig = new PlatformConfig();
        platformConfig.setBIRTHome(directoryProvider.getReportDirectory() + "platform");
       
        IPlatformContext context = new PlatformFileContext(platformConfig);       
    startBirtEngine(context);
  }
View Full Code Here

  }
 
  public BirtProvider(ServletContext servletContext)
    {
      log.info(servletContext.toString());
      IPlatformContext context = new PlatformServletContext(servletContext);    
        startBirtEngine(context);
    }
View Full Code Here

    if (birtEngine == null)
    {     
        PlatformConfig platformConfig = new PlatformConfig();
          platformConfig.setBIRTHome(birtHome);
         
          IPlatformContext context = new PlatformFileContext(platformConfig);         
      startBirtEngine(context);
    }     
   
    return birtEngine;
  }
View Full Code Here

      /*DefaultResourceLocator drl=new DefaultResourceLocator();
      drl.findResource(birtEngine.openReportDesign(arg0), "messages_it_IT.properties", DefaultResourceLocator.MESSAGE_FILE);
      */
      config.setEngineHome("");
      IPlatformContext context = new PlatformServletContext(sc);
      config.setPlatformContext(context);
      config.setTempDir(System.getProperty("java.io.tmpdir") + "/birt/");

     
     // ParameterAccessor.initParameters(sc);
View Full Code Here

            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) {
View Full Code Here

TOP

Related Classes of org.eclipse.birt.core.framework.IPlatformContext

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.