/** * Create a Report Engine using a configuration. * * <p>The user must set the BIRT_HOME in the EngineConfig. * * @param config an engine configuration object used to configure the engine */ public ReportEngine(EngineConfig config) { if (config == null) { throw new NullPointerException("config is null"); } this.config = config; beans = new HashMap<String, Object>(); mergeConfigToAppContext(); intializeLogger(); logger.log(Level.FINE, "ReportEngine created. EngineConfig: {0} ", config); this.helper = new ReportEngineHelper(this); openedDocuments = new LinkedObjectManager<ReportDocumentReader>(); IStatusHandler handler = config.getStatusHandler(); if (handler != null) { handler.initialize(); } }