public class ArkConfigs extends Object
| Constructor and Description |
|---|
ArkConfigs() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getIntValue(String primaryKey,
int defaultValue)
Get int value.
|
static String |
getStringValue(String primaryKey)
Get string value.
|
static String |
getStringValue(String primaryKey,
String defaultValue)
Get string value.
|
static String |
getSystemProperty(String key)
clear system property
|
static void |
init(List<URL> confFiles)
executed only once
|
static boolean |
isEmbedEnable() |
static boolean |
isEmbedStaticBizEnable() |
static Set<String> |
keySet()
Get ArkConfigs key set
|
static void |
putStringValue(String key,
String value)
put string config
|
static void |
setEmbedEnable(boolean enable) |
static void |
setEmbedStaticBizEnable(boolean enable) |
static void |
setSystemProperty(String key,
String value)
configure system property
|
public static void setSystemProperty(String key, String value)
key - value - public static String getSystemProperty(String key)
key - public static String getStringValue(String primaryKey)
primaryKey - the primary keypublic static String getStringValue(String primaryKey, String defaultValue)
primaryKey - the primary keydefaultValue - public static int getIntValue(String primaryKey, int defaultValue)
primaryKey - the primary keydefaultValue - public static void putStringValue(String key, String value)
key - value - public static boolean isEmbedEnable()
public static void setEmbedEnable(boolean enable)
public static boolean isEmbedStaticBizEnable()
public static void setEmbedStaticBizEnable(boolean enable)
Copyright © 2024. All rights reserved.