/** * Returns the boot instance. * * @return The boot instance. */ public static synchronized AbstractBoot getInstance() { if (singleton == null) { singleton = new BaseBoot(); } return singleton; }
/** * Returns the global configuration for JFreeReport. * <p/> * In the current implementation, the configuration has no properties defined, but * references a parent configuration that: <ul> <li>copies across all the * <code>System</code> properties to use as report configuration properties (obviously * the majority of them will not apply to reports);</li> <li>itself references a parent * configuration that reads its properties from a file <code>jfreereport.properties</code>. * </ul> * * @return the global configuration. */ protected synchronized Configuration loadConfiguration() { return createDefaultHierarchicalConfiguration ("/org/jfree/base/jcommon.properties", "/jcommon.properties", true, BaseBoot.class); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Performs the boot process. */ protected void performBoot() { // configure the classloader from the properties-file. ObjectUtilities.setClassLoaderSource (getConfiguration().getConfigProperty("org.jfree.ClassLoader")); getPackageManager().addModule(DefaultLogModule.class.getName()); getPackageManager().load("org.jfree.jcommon.modules."); getPackageManager().initializeModules(); }
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Performs the boot process. */ protected void performBoot() { // configure the classloader from the properties-file. ObjectUtilities.setClassLoaderSource (getConfiguration().getConfigProperty("org.jfree.ClassLoader")); getPackageManager().addModule(DefaultLogModule.class.getName()); getPackageManager().load("org.jfree.jcommon.modules."); getPackageManager().initializeModules(); }
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Performs the boot process. */ protected void performBoot() { // configure the classloader from the properties-file. ObjectUtilities.setClassLoaderSource (getConfiguration().getConfigProperty("org.jfree.ClassLoader")); getPackageManager().addModule(DefaultLogModule.class.getName()); getPackageManager().load("org.jfree.jcommon.modules."); getPackageManager().initializeModules(); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
/** * Returns the boot instance. * * @return The boot instance. */ public static synchronized AbstractBoot getInstance() { if (singleton == null) { singleton = new BaseBoot(); } return singleton; }
/** * Returns the global configuration for JFreeReport. * <p/> * In the current implementation, the configuration has no properties defined, but * references a parent configuration that: <ul> <li>copies across all the * <code>System</code> properties to use as report configuration properties (obviously * the majority of them will not apply to reports);</li> <li>itself references a parent * configuration that reads its properties from a file <code>jfreereport.properties</code>. * </ul> * * @return the global configuration. */ protected synchronized Configuration loadConfiguration() { return createDefaultHierarchicalConfiguration ("/org/jfree/base/jcommon.properties", "/jcommon.properties", true, BaseBoot.class); }
/** * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise. * * @return true, if logging is completly disabled, false otherwise. */ public static boolean isDisableLogging() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true"); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
/** * Returns the boot instance. * * @return The boot instance. */ public static synchronized AbstractBoot getInstance() { if (singleton == null) { singleton = new BaseBoot(); } return singleton; }
/** * Returns the global configuration for JFreeReport. * <p> * In the current implementation, the configuration has no properties defined, but * references a parent configuration that:</p> * <ul> <li>copies across all the * <code>System</code> properties to use as report configuration properties (obviously * the majority of them will not apply to reports);</li> <li>itself references a parent * configuration that reads its properties from a file <code>jfreereport.properties</code>. * </ul> * * @return the global configuration. */ protected synchronized Configuration loadConfiguration() { return createDefaultHierarchicalConfiguration ("/org/jfree/base/jcommon.properties", "/jcommon.properties", true, BaseBoot.class); }
/** * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise. * * @return true, if logging is completly disabled, false otherwise. */ public static boolean isDisableLogging() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true"); }
/** * Sets the flag that disables logging. * <p> * To switch off logging globally, you can use the following code: * <p> * <code>ReportConfiguration.getGlobalConfig().setDisableLogging(true);</code> * * @param disableLogging the flag. */ public static void setDisableLogging(final boolean disableLogging) { BaseBoot.getConfiguration().setConfigProperty (DISABLE_LOGGING, String.valueOf(disableLogging)); }
/** * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise. * * @return true, if logging is completly disabled, false otherwise. */ public static boolean isDisableLogging() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true"); }
/** * Sets the flag that disables logging. * <p> * To switch off logging globally, you can use the following code: * <p> * <code>ReportConfiguration.getGlobalConfig().setDisableLogging(true);</code> * * @param disableLogging the flag. */ public static void setDisableLogging(final boolean disableLogging) { BaseBoot.getConfiguration().setConfigProperty (DISABLE_LOGGING, String.valueOf(disableLogging)); }