/** * Retrieves the global configuration as a Map. * * @return Map of the global config */ public Map<String, ConfigElement> getGlobal() { if (this.globalConfig == null) { if (this.configService != null) { // get the global config this.globalConfig = this.configService.getGlobalConfig().getConfigElements(); } // if no global config was found create an empty map if (this.globalConfig == null) { this.globalConfig = Collections.emptyMap(); } } return this.globalConfig; }
/** * Retrieves the global configuration as a Map. * * @return Map of the global config */ public Map<String, ConfigElement> getGlobal() { if (this.globalConfig == null) { if (this.configService != null) { // get the global config this.globalConfig = this.configService.getGlobalConfig().getConfigElements(); } // if no global config was found create an empty map if (this.globalConfig == null) { this.globalConfig = Collections.emptyMap(); } } return this.globalConfig; }
/** * Retrieves the global configuration as a Map. * * @return Map of the global config */ public Map<String, ConfigElement> getGlobal() { if (this.globalConfig == null) { if (this.configService != null) { // get the global config this.globalConfig = this.configService.getGlobalConfig().getConfigElements(); } // if no global config was found create an empty map if (this.globalConfig == null) { this.globalConfig = Collections.emptyMap(); } } return this.globalConfig; }
protected boolean isDebugMode() { if (this.isDebugMode == null) { Boolean debugValue = false; if (configService != null) { Config global = configService.getGlobalConfig(); if (global != null) { ConfigElement flags = global.getConfigElement("flags"); if (flags != null) { ConfigElement clientDebug = flags.getChild("client-debug"); if (clientDebug != null) { debugValue = Boolean.valueOf(clientDebug.getValue()); } } } } this.isDebugMode = debugValue; } return this.isDebugMode; }
protected boolean isDebugMode() { if (this.isDebugMode == null) { Boolean debugValue = false; if (configService != null) { Config global = configService.getGlobalConfig(); if (global != null) { ConfigElement flags = global.getConfigElement("flags"); if (flags != null) { ConfigElement clientDebug = flags.getChild("client-debug"); if (clientDebug != null) { debugValue = Boolean.valueOf(clientDebug.getValue()); } } } } this.isDebugMode = debugValue; } return this.isDebugMode; }
protected boolean isDebugMode() { if (this.isDebugMode == null) { Boolean debugValue = false; if (configService != null) { Config global = configService.getGlobalConfig(); if (global != null) { ConfigElement flags = global.getConfigElement("flags"); if (flags != null) { ConfigElement clientDebug = flags.getChild("client-debug"); if (clientDebug != null) { debugValue = Boolean.valueOf(clientDebug.getValue()); } } } } this.isDebugMode = debugValue; } return this.isDebugMode; }
protected boolean isDebugMode() { if (this.isDebugMode == null) { Boolean debugValue = false; if (configService != null) { Config global = configService.getGlobalConfig(); if (global != null) { ConfigElement flags = global.getConfigElement("flags"); if (flags != null) { ConfigElement clientDebug = flags.getChild("client-debug"); if (clientDebug != null) { debugValue = Boolean.valueOf(clientDebug.getValue()); } } } } this.isDebugMode = debugValue; } return this.isDebugMode; }