/** * 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; }
/** * 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); }
/** * 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); }
/** * 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; }
/** * 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; }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty (final String key) { return parent.getConfigProperty(key); }
/** * 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.</p> * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty (final String key, final String defaultValue) { return this.parent.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) { return this.parent.getConfigProperty(key, defaultValue); }
/** * Returns the boolean value of a given configuration property. The boolean value true * is returned, if the contained string is equal to 'true'. If the property is not set, * the default value is returned. * * @param name the name of the property * @param defaultValue the default value to be returned if the property is not set * @return the boolean value of the property. */ public boolean getBoolProperty (final String name, final boolean defaultValue) { return "true".equals(parent.getConfigProperty(name, String.valueOf(defaultValue))); }
/** * Returns the boolean value of a given configuration property. The boolean value true * is returned, if the contained string is equal to 'true'. If the property is not set, * the default value is returned. * * @param name the name of the property * @param defaultValue the default value to be returned if the property is not set * @return the boolean value of the property. */ public boolean getBoolProperty (final String name, final boolean defaultValue) { return "true".equals(this.parent.getConfigProperty(name, String.valueOf(defaultValue))); }
/** * Returns the boolean value of a given configuration property. The boolean value true * is returned, if the contained string is equal to 'true'. If the property is not set, * the default value is returned. * * @param name the name of the property * @param defaultValue the default value to be returned if the property is not set * @return the boolean value of the property. */ public boolean getBoolProperty (final String name, final boolean defaultValue) { return "true".equals(this.parent.getConfigProperty(name, String.valueOf(defaultValue))); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * Returns the log level. * * @return the log level. */ public static String getLogLevel() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGLEVEL, LOGLEVEL_DEFAULT); }
/** * Returns the log level. * * @return the log level. */ public static String getLogLevel() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGLEVEL, LOGLEVEL_DEFAULT); }
/** * Returns the current log target. * * @return the log target. */ public static String getLogTarget() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGTARGET, LOGTARGET_DEFAULT); }
/** * Returns the current log target. * * @return the log target. */ public static String getLogTarget() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGTARGET, LOGTARGET_DEFAULT); }
/** * Returns the current log target. * * @return the log target. */ public static String getLogTarget() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGTARGET, LOGTARGET_DEFAULT); }
/** * Returns the log level. * * @return the log level. */ public static String getLogLevel() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (LOGLEVEL, LOGLEVEL_DEFAULT); }