/** * 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); } }
/** * Load the properties in the given file. * * @param resourceName the file name. */ public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
= new PropertyFileConfiguration(); rootProperty.load(staticConfig, getClass()); globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( try { final PropertyFileConfiguration baseProperty = new PropertyFileConfiguration(); final InputStream in = url.openStream(); baseProperty.load(in); in.close(); configs.add(baseProperty);
/** * Loads the properties stored in the given file. This method does nothing if * the file does not exist or is unreadable. Appends the contents of the loaded * properties to the already stored contents. * * @param in the input stream used to read the properties. */ public void load(final InputStream in) { if (in == null) { throw new NullPointerException(); } try { final BufferedInputStream bin = new BufferedInputStream(in); final Properties p = new Properties(); p.load(bin); this.getConfiguration().putAll(p); bin.close(); } catch (IOException ioe) { Log.warn("Unable to read configuration", ioe); } }
= new PropertyFileConfiguration(); rootProperty.load(staticConfig, getClass()); globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( try { final PropertyFileConfiguration baseProperty = new PropertyFileConfiguration(); final InputStream in = url.openStream(); baseProperty.load(in); in.close(); configs.add(baseProperty);
/** * Loads the properties stored in the given file. This method does nothing if * the file does not exist or is unreadable. Appends the contents of the loaded * properties to the already stored contents. * * @param in the input stream used to read the properties. */ public void load(final InputStream in) { if (in == null) { throw new NullPointerException(); } try { final BufferedInputStream bin = new BufferedInputStream(in); final Properties p = new Properties(); p.load(bin); this.getConfiguration().putAll(p); bin.close(); } catch (IOException ioe) { Log.warn("Unable to read configuration", ioe); } }
= new PropertyFileConfiguration(); rootProperty.load(staticConfig, getClass()); globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( try { final PropertyFileConfiguration baseProperty = new PropertyFileConfiguration(); final InputStream in = url.openStream(); baseProperty.load(in); in.close(); configs.add(baseProperty);
/** * Load the properties in the given file. * * @param resourceName the file name. */ public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * 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); } }
/** * Loads the properties stored in the given file. This method does nothing if * the file does not exist or is unreadable. Appends the contents of the loaded * properties to the already stored contents. * * @param in the input stream used to read the properties. */ public void load(final InputStream in) { if (in == null) { throw new NullPointerException(); } try { final BufferedInputStream bin = new BufferedInputStream(in); final Properties p = new Properties(); p.load(bin); this.getConfiguration().putAll(p); bin.close(); } catch (IOException ioe) { Log.warn("Unable to read configuration", ioe); } }
public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * 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); } }