/** * The new configuartion will be inserted into the list of report * configuration, so that this configuration has the given report * configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { config.setParentConfig(getParentConfig()); setParentConfig(config); }
/** * Load the properties in the given file. * * @param resourceName the file name. */ public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getConfigProperty(key, null); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
/** * The new configuartion will be inserted into the list of report configuration, * so that this configuration has the given report configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { super.insertConfiguration(config); } }
/** * Helper method for serialization. * * @param out the output stream where to write the object. * @throws java.io.IOException if errors occur while writing the stream. */ private void writeObject(final ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if (isParentSaved() == false) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeObject(this.parentConfiguration); } }
/** * The new configuartion will be inserted into the list of report * configuration, so that this configuration has the given report * configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { config.setParentConfig(getParentConfig()); setParentConfig(config); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
/** * Load the properties in the given file. * * @param resourceName the file name. */ public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getConfigProperty(key, null); }
/** * The new configuartion will be inserted into the list of report configuration, * so that this configuration has the given report configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { super.insertConfiguration(config); } }
/** * Helper method for serialization. * * @param out the output stream where to write the object. * @throws java.io.IOException if errors occur while writing the stream. */ private void writeObject(final ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if (isParentSaved() == false) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeObject(parentConfiguration); } }
/** * The new configuartion will be inserted into the list of report * configuration, so that this configuration has the given report * configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { config.setParentConfig(getParentConfig()); setParentConfig(config); }
/** * Sets the log target. * * @param logTarget the new log target. */ public static void setLogTarget(final String logTarget) { BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget); }
public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getConfigProperty(key, null); }
/** * The new configuartion will be inserted into the list of report configuration, * so that this configuration has the given report configuration instance as parent. * * @param config the new report configuration. */ public void insertConfiguration(final HierarchicalConfiguration config) { super.insertConfiguration(config); } }
/** * 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)); }
/** * 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)); }
/** * 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)); }