public static void performPentahoReportingBoot( LogChannelInterface log, Class<?> referenceClass ) { // Boot the Pentaho reporting engine! // if ( ClassicEngineBoot.getInstance().isBootDone() == false ) { ObjectUtilities.setClassLoader( referenceClass.getClassLoader() ); ObjectUtilities.setClassLoaderSource( ObjectUtilities.CLASS_CONTEXT ); LibLoaderBoot.getInstance().start(); LibFontBoot.getInstance().start(); ClassicEngineBoot.getInstance().start(); Exception exception = ClassicEngineBoot.getInstance().getBootFailureReason(); if ( exception != null ) { log.logError( "Error booting the Pentaho reporting engine", exception ); } } }
if ( ClassicEngineBoot.getInstance().isBootDone() == false ) { ClassicEngineBoot.getInstance().start();
public boolean initialize( final SwingGuiContext context ) { if ( super.initialize( context ) == false ) { return false; } if ( ClassicEngineBoot.getInstance().isModuleAvailable( ExcelExportGUIModule.class.getName() ) == false ) { return false; } return true; }
/** * A helper method that queries the configuration (and therefore also the system properties) for whether the system is * in headless mode. * * @return true, if the system is headless, false otherwise. */ protected static boolean isHeadless() { final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig(); return "true".equals( config.getConfigProperty( "java.awt.headless", "false" ) ); }
public boolean initialize( final SwingGuiContext context ) { if ( super.initialize( context ) == false ) { return false; } if ( ClassicEngineBoot.getInstance().isModuleAvailable( HtmlExportGUIModule.class.getName() ) == false ) { return false; } return true; }
public boolean initialize( final SwingGuiContext context ) { if ( super.initialize( context ) == false ) { return false; } if ( ClassicEngineBoot.getInstance().isModuleAvailable( HtmlExportGUIModule.class.getName() ) == false ) { return false; } return true; }
public boolean initialize( final SwingGuiContext context ) { if ( super.initialize( context ) == false ) { return false; } if ( ClassicEngineBoot.getInstance().isModuleAvailable( RTFExportGUIModule.class.getName() ) == false ) { return false; } return true; }
private PasswordEncryptionService() { services = new HashMap<String, PasswordEncryptionServiceProvider>(); provider = ClassicEngineBoot.getInstance().getObjectFactory().get( PasswordEncryptionServiceProvider.class ); registerService( provider ); logger.debug( "Selected " + provider.getClass() + " as default provider." ); }
/** * Defines the loader settings for the available encodings shown to the user. The property defaults to * AVAILABLE_ENCODINGS_ALL. * * @return either AVAILABLE_ENCODINGS_ALL, AVAILABLE_ENCODINGS_FILE or AVAILABLE_ENCODINGS_NONE. */ public static String getAvailableEncodings() { return ClassicEngineBoot.getInstance().getGlobalConfig().getConfigProperty( AVAILABLE_ENCODINGS, AVAILABLE_ENCODINGS_ALL ); }
public static VersionValidity isValidVersion( final int prptVersionMajorRaw, final int prptVersionMinorRaw, final int prptVersionPatchRaw ) { return getInstance().isValidVersion( prptVersionMajorRaw, prptVersionMinorRaw, prptVersionPatchRaw, ClassicEngineInfo.getInstance() ); }
public static synchronized SubReportReadHandlerFactory getInstance() { if ( readHandlerFactory == null ) { readHandlerFactory = new SubReportReadHandlerFactory(); readHandlerFactory.configureGlobal( ClassicEngineBoot.getInstance().getGlobalConfig(), PREFIX_SELECTOR ); } return readHandlerFactory; }
public static synchronized ReportElementReadHandlerFactory getInstance() { if ( readHandlerFactory == null ) { readHandlerFactory = new ReportElementReadHandlerFactory(); readHandlerFactory.configureGlobal( ClassicEngineBoot.getInstance().getGlobalConfig(), PREFIX_SELECTOR ); } return readHandlerFactory; }
public Configuration getConfiguration() { final MasterReport report = getReportJob(); if ( report != null ) { return report.getConfiguration(); } return ClassicEngineBoot.getInstance().getGlobalConfig(); }
public DefaultStyleCache() { this.lookupKey = new CacheKey(); this.cache = new LFUMap<CacheKey, CacheCarrier>( 500 ); this.validateCache = "true".equals( ClassicEngineBoot.getInstance().getGlobalConfig().getConfigProperty( "org.pentaho.reporting.engine.classic.core.layout.style.ValidateStyleCacheResults" ) ); }
private TagDescription createTagDescription() { final DefaultTagDescription defaultTagDescription = new DefaultTagDescription(); defaultTagDescription.configure( ClassicEngineBoot.getInstance().getGlobalConfig(), "org.pentaho.reporting.engine.classic.core.modules.parser.extwriter." ); return defaultTagDescription; }
public DatabaseMetaReadHandler() { final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory(); final IDatabaseDialectService dialectService = objectFactory.get( IDatabaseDialectService.class ); this.databaseTypeHelper = new DatabaseTypeHelper( dialectService.getDatabaseTypes() ); }
public static int[] sort( final TableModel model, final SortConstraint[] constraints ) { TableSorter tableSorter = ClassicEngineBoot.getInstance().getObjectFactory().get( TableSorter.class ); return tableSorter.init( model, constraints ).populate().sortData(); } }
private PageDefinition createDefaultPageDefinition() { final PageDefinition format; final ExtendedConfiguration config = ClassicEngineBoot.getInstance().getExtendedConfig(); if ( config.getBoolProperty( ClassicEngineCoreModule.NO_PRINTER_AVAILABLE_KEY ) ) { format = new SimplePageDefinition( new PageFormat() ); } else { format = new SimplePageDefinition( PrinterJob.getPrinterJob().defaultPage() ); } return format; }
protected void setUp() throws Exception { ClassicEngineBoot.getInstance().start(); outputProcessorMetaData = new DebugOutputProcessorMetaData(); pageGrid = new DefaultPageGrid( new SimplePageDefinition( new PageFormat() ) ); }
protected void setUp() throws Exception { ClassicEngineBoot.getInstance().start(); outputProcessorMetaData = new DebugOutputProcessorMetaData(); pageGrid = new DefaultPageGrid( new SimplePageDefinition( new PageFormat() ) ); }