- java.lang.Object
-
- org.redkale.util.Environment
-
- 所有已实现的接口:
Serializable
public class Environment extends Object implements Serializable
环境变量, 只读版Properties 只存放system.property.、mimetype.property.、redkale.cachesource(.|[)、redkale.datasource(.|[)和其他非redkale.开头的配置项 只有ResourceFactory.register(Properties properties, String environmentName, Class environmentType) 方法才能是Environment的ResourceChanged起作用详情见: https://redkale.org
- 从以下版本开始:
- 2.7.0
- 作者:
- zhangjx
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 Environment()
Environment(Properties properties)
-
方法概要
-
-
-
构造器详细资料
-
Environment
public Environment()
-
Environment
public Environment(Properties properties)
-
-
方法详细资料
-
newProperties
public Properties newProperties()
-
containsKey
public boolean containsKey(String key)
-
forEach
public void forEach(BiConsumer<String,String> action)
-
forEach
public void forEach(Predicate<String> predicate, BiConsumer<String,String> action)
-
getPropertyValue
public String getPropertyValue(String val, Properties... envs)
-
getBooleanProperty
public boolean getBooleanProperty(String key)
-
getBooleanProperty
public boolean getBooleanProperty(String key, boolean defaultValue)
-
getShortProperty
public short getShortProperty(String key)
-
getShortProperty
public short getShortProperty(String key, short defaultValue)
-
getIntProperty
public int getIntProperty(String key)
-
getIntProperty
public int getIntProperty(String key, int defaultValue)
-
getFloatProperty
public float getFloatProperty(String key)
-
getFloatProperty
public float getFloatProperty(String key, float defaultValue)
-
getLongProperty
public long getLongProperty(String key)
-
getLongProperty
public long getLongProperty(String key, long defaultValue)
-
getDoubleProperty
public double getDoubleProperty(String key)
-
getDoubleProperty
public double getDoubleProperty(String key, double defaultValue)
-
-