Package com.core.logger.util
Class SConfigurationUtil
- java.lang.Object
-
- org.springframework.core.io.support.PropertiesLoaderSupport
-
- org.springframework.beans.factory.config.PropertyResourceConfigurer
-
- org.springframework.beans.factory.config.PlaceholderConfigurerSupport
-
- org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
-
- com.core.logger.util.SConfigurationUtil
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.core.Ordered
,org.springframework.core.PriorityOrdered
public class SConfigurationUtil extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
-
-
Field Summary
-
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
-
-
Constructor Summary
Constructors Constructor Description SConfigurationUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
getBoolean(java.lang.String key)
static boolean
getBoolean(java.lang.String key, boolean defVal)
static int
getInt(java.lang.String key)
static int
getInt(java.lang.String key, int defVal)
static long
getLong(java.lang.String key)
static long
getLong(java.lang.String key, long defVal)
static java.lang.String
getString(java.lang.String key)
static java.lang.String
getString(java.lang.String key, java.lang.String defVal)
static java.lang.String
getValue(java.lang.String key)
static java.lang.String
getValue(java.lang.String key, java.lang.String defVal)
static boolean
isDevelopmentEnv()
static boolean
isDevService()
static boolean
isDrEnv()
static boolean
isLiveService()
static boolean
isLocalEnv()
static boolean
isProductionEnv()
static boolean
isSimulatorEnv()
static boolean
isTestEnv()
static boolean
isTestService()
void
reloadProperties()
-
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
-
Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport
setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
-
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
getOrder, postProcessBeanFactory, setOrder
-
-
-
-
Method Detail
-
reloadProperties
public void reloadProperties() throws java.io.IOException
- Throws:
java.io.IOException
-
getValue
public static java.lang.String getValue(java.lang.String key)
-
getValue
public static java.lang.String getValue(java.lang.String key, java.lang.String defVal)
-
getString
public static java.lang.String getString(java.lang.String key)
-
getString
public static java.lang.String getString(java.lang.String key, java.lang.String defVal)
-
getBoolean
public static boolean getBoolean(java.lang.String key, boolean defVal)
-
getBoolean
public static boolean getBoolean(java.lang.String key)
-
getInt
public static int getInt(java.lang.String key, int defVal)
-
getInt
public static int getInt(java.lang.String key)
-
getLong
public static long getLong(java.lang.String key, long defVal)
-
getLong
public static long getLong(java.lang.String key)
-
isLiveService
public static boolean isLiveService()
-
isTestService
public static boolean isTestService()
-
isDevService
public static boolean isDevService()
-
isProductionEnv
public static boolean isProductionEnv()
-
isTestEnv
public static boolean isTestEnv()
-
isDrEnv
public static boolean isDrEnv()
-
isDevelopmentEnv
public static boolean isDevelopmentEnv()
-
isLocalEnv
public static boolean isLocalEnv()
-
isSimulatorEnv
public static boolean isSimulatorEnv()
-
-