Class 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
      • Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

        DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 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
      • Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

        setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SConfigurationUtil

        public SConfigurationUtil()
    • 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()