/** * Boolean property accessor method to hide the configuration implementation. * * @param key property key * @param def The default value if property not found. * @return value of key or default value * @see RuntimeInstance#getBoolean(String, boolean) */ public static boolean getBoolean( String key, boolean def ) { return ri.getBoolean( key, def ); }
/** * Boolean property accessor method to hide the configuration implementation. * * @param key property key * @param def The default value if property not found. * @return value of key or default value * @see RuntimeInstance#getBoolean(String, boolean) */ public static boolean getBoolean( String key, boolean def ) { return ri.getBoolean( key, def ); }
/** * Boolean property accessor method to hide the configuration implementation. * * @param String key property key * @param boolean default default value if property not found * @return boolean value of key or default value */ public static boolean getBoolean( String key, boolean def ) { return ri.getBoolean( key, def ); }
private void initializeEvaluateScopeSettings() { String property = evaluateScopeName+'.'+PROVIDE_SCOPE_CONTROL; provideEvaluateScope = getBoolean(property, provideEvaluateScope); }
/** * Boolean property accessor method to hide the configuration implementation. * * @param key property key * @param def The default value if property not found. * @return value of key or default value * @see RuntimeInstance#getBoolean(String, boolean) */ public static boolean getBoolean( String key, boolean def ) { return ri.getBoolean(key, def); }
private void initializeEvaluateScopeSettings() { String property = evaluateScopeName+'.'+PROVIDE_SCOPE_CONTROL; provideEvaluateScope = getBoolean(property, provideEvaluateScope); }
/** * Added this to check and make sure that the configuration * is initialized before trying to get properties from it. * This occurs when there are errors during initialization * and the default properties have yet to be layed down. */ private boolean showStackTrace() { if (configuration.isInitialized()) { return getBoolean(RUNTIME_LOG_WARN_STACKTRACE, false); } else { return false; } }
/** * Initialize runtime internal properties */ private void initializeSelfProperties() { /* initialize string interning (defaults to false) */ stringInterning = getBoolean(RUNTIME_STRING_INTERNING, true); /* initialize indentation mode (defaults to 'lines') */ String im = getString(SPACE_GOBBLING, "lines"); try { spaceGobbling = SpaceGobbling.valueOf(im.toUpperCase()); } catch (NoSuchElementException nse) { spaceGobbling = SpaceGobbling.LINES; } }