/** * 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); }
/** * 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); }
/** * 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); }
/** * Returns the configuration property with the specified key (or the specified default value * if there is no such property). * <p> * If the property is not defined in this configuration, the code will lookup the property in * the parent configuration. * * @param key the property key. * @param defaultValue the default value. * * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { try { final String value = System.getProperty(key); if (value != null) { return value; } } catch (SecurityException se) { // ignore security exceptions, continue as if the property was not set.. } return super.getConfigProperty(key, defaultValue); }
/** * Returns the configuration property with the specified key (or the specified default value * if there is no such property). * <p> * If the property is not defined in this configuration, the code will lookup the property in * the parent configuration. * * @param key the property key. * @param defaultValue the default value. * * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { try { final String value = System.getProperty(key); if (value != null) { return value; } } catch (SecurityException se) { // ignore security exceptions, continue as if the property was not set.. } return super.getConfigProperty(key, defaultValue); }
/** * Returns the configuration property with the specified key (or the specified default value * if there is no such property). * <p> * If the property is not defined in this configuration, the code will lookup the property in * the parent configuration. * * @param key the property key. * @param defaultValue the default value. * * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { try { final String value = System.getProperty(key); if (value != null) { return value; } } catch (SecurityException se) { // ignore security exceptions, continue as if the property was not set.. } return super.getConfigProperty(key, defaultValue); }