Example #1
0
  public BirtProvider(DirectoryProvider directoryProvider) {
    PlatformConfig platformConfig = new PlatformConfig();
    platformConfig.setBIRTHome(directoryProvider.getReportDirectory() + "platform");

    IPlatformContext context = new PlatformFileContext(platformConfig);
    startBirtEngine(context);
  }
Example #2
0
  public static synchronized IReportEngine getBirtEngine(String birtHome) {
    if (birtEngine == null) {
      PlatformConfig platformConfig = new PlatformConfig();
      platformConfig.setBIRTHome(birtHome);

      IPlatformContext context = new PlatformFileContext(platformConfig);
      startBirtEngine(context);
    }

    return birtEngine;
  }