public class CacheConfig extends Object
| 构造器和说明 |
|---|
CacheConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
appendProperties(Object object,
Class<?> owner) |
protected static Object |
casePrimitiveType(Class<?> targetType,
Object value) |
static boolean |
checkIsBasicType(Class<?> targetType) |
static InputStream |
getConfigurationInputStream(String propertyFile) |
static Properties |
getProperties() |
static String |
getProperty(String key) |
static boolean |
getProperty(String key,
boolean defaultValue) |
static double |
getProperty(String key,
double defaultValue) |
static float |
getProperty(String key,
float defaultValue) |
static int |
getProperty(String key,
int defaultValue) |
static long |
getProperty(String key,
long defaultValue) |
static short |
getProperty(String key,
short defaultValue) |
static String |
getProperty(String key,
String defaultValue) |
static void |
initProperties() |
public static void initProperties()
public static Properties getProperties()
public static int getProperty(String key, int defaultValue)
public static short getProperty(String key, short defaultValue)
public static long getProperty(String key, long defaultValue)
public static float getProperty(String key, float defaultValue)
public static double getProperty(String key, double defaultValue)
public static boolean getProperty(String key, boolean defaultValue)
public static InputStream getConfigurationInputStream(String propertyFile) throws FileNotFoundException
public static boolean checkIsBasicType(Class<?> targetType)
Copyright © 2015. All rights reserved.