public Object clone () throws CloneNotSupportedException { ExtendedConfigurationWrapper wrapper = (ExtendedConfigurationWrapper) super.clone(); wrapper.parent = (Configuration) parent.clone(); return parent; } }
/** * Returns all keys with the given prefix. * * @param prefix the prefix * @return the iterator containing all keys with that prefix */ public Iterator findPropertyKeys (final String prefix) { return this.parent.findPropertyKeys(prefix); }
/** * Returns an enumeration of the configuration properties. * * @return An enumeration. */ public Enumeration getConfigProperties() { return this.parent.getConfigProperties(); }
/** * Checks, whether a given property is defined. * * @param name the name of the property * @return true, if the property is defined, false otherwise. */ public boolean isPropertySet (final String name) { return this.parent.getConfigProperty(name) != null; }
/** * Loads all modules mentioned in the report configuration starting with * the given prefix. This method is used during the boot process of * JFreeReport. You should never need to call this method directly. * * @param modulePrefix the module prefix. */ public void load(final String modulePrefix) { if (this.initSections.contains(modulePrefix)) { return; } this.initSections.add(modulePrefix); final Configuration config = this.booter.getGlobalConfig(); final Iterator it = config.findPropertyKeys(modulePrefix); int count = 0; while (it.hasNext()) { final String key = (String) it.next(); if (key.endsWith(".Module")) { final String moduleClass = config.getConfigProperty(key); if (moduleClass != null && moduleClass.length() > 0) { addModule(moduleClass); count++; } } } Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty (final String key) { return this.parent.getConfigProperty(key); }
/** * Loads all modules mentioned in the report configuration starting with * the given prefix. This method is used during the boot process of * JFreeReport. You should never need to call this method directly. * * @param modulePrefix the module prefix. */ public void load(final String modulePrefix) { if (this.initSections.contains(modulePrefix)) { return; } this.initSections.add(modulePrefix); final Configuration config = this.booter.getGlobalConfig(); final Iterator it = config.findPropertyKeys(modulePrefix); int count = 0; while (it.hasNext()) { final String key = (String) it.next(); if (key.endsWith(".Module")) { final String moduleClass = config.getConfigProperty(key); if (moduleClass != null && moduleClass.length() > 0) { addModule(moduleClass); count++; } } } Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty (final String key) { return this.parent.getConfigProperty(key); }
/** * Loads all modules mentioned in the report configuration starting with * the given prefix. This method is used during the boot process of * JFreeReport. You should never need to call this method directly. * * @param modulePrefix the module prefix. */ public void load(final String modulePrefix) { if (this.initSections.contains(modulePrefix)) { return; } this.initSections.add(modulePrefix); final Configuration config = this.booter.getGlobalConfig(); final Iterator it = config.findPropertyKeys(modulePrefix); int count = 0; while (it.hasNext()) { final String key = (String) it.next(); if (key.endsWith(".Module")) { final String moduleClass = config.getConfigProperty(key); if (moduleClass != null && moduleClass.length() > 0) { addModule(moduleClass); count++; } } } Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix); }
/** * Returns an enumeration of the configuration properties. * * @return An enumeration. */ public Enumeration getConfigProperties() { return this.parent.getConfigProperties(); }
/** * Returns all keys with the given prefix. * * @param prefix the prefix * @return the iterator containing all keys with that prefix */ public Iterator findPropertyKeys (final String prefix) { return this.parent.findPropertyKeys(prefix); }
/** * Returns a clone of this instance. * * @return A clone. * * @throws CloneNotSupportedException if there is a problem cloning. */ public Object clone () throws CloneNotSupportedException { ExtendedConfigurationWrapper wrapper = (ExtendedConfigurationWrapper) super.clone(); wrapper.parent = (Configuration) this.parent.clone(); return this.parent; } }
/** * Checks, whether a given property is defined. * * @param name the name of the property * @return true, if the property is defined, false otherwise. */ public boolean isPropertySet (final String name) { return parent.getConfigProperty(name) != null; }
final Iterator defaults = config.findPropertyKeys(""); while (defaults.hasNext()) { final String key = (String) defaults.next(); final String value = config.getConfigProperty(key);
public Enumeration getConfigProperties() { return parent.getConfigProperties(); }
/** * Returns all keys with the given prefix. * * @param prefix the prefix * @return the iterator containing all keys with that prefix */ public Iterator findPropertyKeys (final String prefix) { return parent.findPropertyKeys(prefix); }
/** * Returns a clone of this instance. * * @return A clone. * * @throws CloneNotSupportedException if there is a problem cloning. */ public Object clone () throws CloneNotSupportedException { ExtendedConfigurationWrapper wrapper = (ExtendedConfigurationWrapper) super.clone(); wrapper.parent = (Configuration) this.parent.clone(); return this.parent; } }
/** * Checks, whether a given property is defined. * * @param name the name of the property * @return true, if the property is defined, false otherwise. */ public boolean isPropertySet (final String name) { return this.parent.getConfigProperty(name) != null; }
final Iterator defaults = config.findPropertyKeys(""); while (defaults.hasNext()) { final String key = (String) defaults.next(); final String value = config.getConfigProperty(key);
final TreeSet collector) final Enumeration enum1 = config.getConfigProperties(); while (enum1.hasMoreElements())