/** * Performs the boot. */ protected void performBoot() { final PackageManager packageManager = getPackageManager(); packageManager.load( "org.pentaho.reporting.libraries.resourceloader.modules." ); packageManager.initializeModules(); } }
/** * Performs the actual boot process. */ protected void performBoot() { if ( ClassicEngineBoot.isStrictFP() == false ) { ClassicEngineBoot.logger.warn( "The used VM seems to use a non-strict floating point arithmetics" ); // NON-NLS ClassicEngineBoot.logger.warn( "Layouts computed with this Java Virtual Maschine may be invalid." ); // NON-NLS ClassicEngineBoot.logger.warn( "JFreeReport and the library 'iText' depend on the strict floating point rules" ); // NON-NLS ClassicEngineBoot.logger.warn( "of Java1.1 as implemented by the Sun Virtual Maschines." ); // NON-NLS ClassicEngineBoot.logger.warn( "If you are using the BEA JRockit VM, start the Java VM with the option" ); // NON-NLS ClassicEngineBoot.logger.warn( "'-Xstrictfp' to restore the default behaviour." ); // NON-NLS } final PackageManager mgr = getPackageManager(); mgr.addModule( ClassicEngineCoreModule.class.getName() ); mgr.load( "org.pentaho.reporting.engine.classic.core.modules." ); // NON-NLS mgr.load( "org.pentaho.reporting.engine.classic.extensions.modules." ); // NON-NLS mgr.load( "org.pentaho.reporting.engine.classic.extensions.datasources." ); // NON-NLS mgr.load( "org.pentaho.reporting.engine.classic.core.userdefined.modules." ); // NON-NLS bootAdditionalModules(); mgr.initializeModules(); if ( mgr.isModuleAvailable( ClassicEngineCoreModule.class.getName() ) == false ) { throw new IllegalStateException( "Booting the report-engine failed." ); } StyleKey.lock(); }
/** * Boots modules, which have been spcified in the "org.pentaho.reporting.engine.classic.core.boot.Modules" * configuration parameter. */ private void bootAdditionalModules() { try { final String bootModules = getGlobalConfig().getConfigProperty( "org.pentaho.reporting.engine.classic.core.boot.Modules" ); // NON-NLS if ( bootModules != null ) { final CSVTokenizer csvToken = new CSVTokenizer( bootModules, "," ); while ( csvToken.hasMoreTokens() ) { final String token = csvToken.nextToken(); getPackageManager().load( token ); } } } catch ( SecurityException se ) { // we'll ignore any Security exception .. ClassicEngineBoot.logger.info( "Security settings forbid to check the system properties for extension modules." ); // NON-NLS } catch ( Exception se ) { ClassicEngineBoot.logger.error( "An error occured while checking the system properties for extension modules.", // NON-NLS se ); } }