类 ConfigurationUtils
- java.lang.Object
-
- org.apache.dubbo.common.config.ConfigurationUtils
-
public class ConfigurationUtils extends Object
Utilities for manipulating configurations from different sources
-
-
构造器概要
构造器 构造器 说明 ConfigurationUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intget(String property, int defaultValue)static ConfigurationgetDynamicGlobalConfiguration()static StringgetDynamicProperty(String property)static StringgetDynamicProperty(String property, String defaultValue)static ConfigurationgetEnvConfiguration()Used to get properties from the os environmentstatic ConfigurationgetGlobalConfiguration()Used to get an composite property value.static StringgetProperty(String property)static StringgetProperty(String property, String defaultValue)static intgetServerShutdownTimeout()static ConfigurationgetSystemConfiguration()Used to get properties from the jvmstatic Map<String,String>parseProperties(String content)
-
-
-
方法详细资料
-
getSystemConfiguration
public static Configuration getSystemConfiguration()
Used to get properties from the jvm- 返回:
-
getEnvConfiguration
public static Configuration getEnvConfiguration()
Used to get properties from the os environment- 返回:
-
getGlobalConfiguration
public static Configuration getGlobalConfiguration()
Used to get an composite property value.Also see
Environment.getConfiguration()- 返回:
-
getDynamicGlobalConfiguration
public static Configuration getDynamicGlobalConfiguration()
-
getServerShutdownTimeout
public static int getServerShutdownTimeout()
-
get
public static int get(String property, int defaultValue)
-
parseProperties
public static Map<String,String> parseProperties(String content) throws IOException
- 抛出:
IOException
-
-