Class SakaiProperties

  • All Implemented Interfaces:
    BeanFactoryPostProcessorCreator, org.springframework.beans.factory.InitializingBean

    public class SakaiProperties
    extends Object
    implements BeanFactoryPostProcessorCreator, org.springframework.beans.factory.InitializingBean
    A configurer for "sakai.properties" files. These differ from the usual Spring default properties files by mixing together lines which define property-value pairs and lines which define bean property overrides. The two can be distinguished because Sakai conventionally uses the bean name separator "@" instead of the default "." This class creates separate PropertyPlaceholderConfigurer and PropertyOverrideConfigurer objects to handle bean configuration, and loads them with the input properties. SakaiProperties configuration supports most of the properties documented for PropertiesFactoryBean, PropertyPlaceholderConfigurer, and PropertyOverrideConfigurer.
    • Constructor Detail

      • SakaiProperties

        public SakaiProperties()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getSeparateProperties

        public Map<String,​Properties> getSeparateProperties()
        Gets the individual properties from each properties file which is read in
        Returns:
        a map of filename -> Properties
      • getProperties

        public Properties getProperties()
        INTERNAL
        Returns:
        the set of properties after processing
      • getRawProperties

        public Properties getRawProperties()
        INTERNAL
        Returns:
        the complete set of properties exactly as read from the files
      • setProperties

        public void setProperties​(Properties properties)
      • setPropertiesArray

        public void setPropertiesArray​(Properties[] propertiesArray)
      • setLocation

        public void setLocation​(org.springframework.core.io.Resource location)
      • setLocations

        public void setLocations​(org.springframework.core.io.Resource[] locations)
      • setFileEncoding

        public void setFileEncoding​(String encoding)
      • setIgnoreResourceNotFound

        public void setIgnoreResourceNotFound​(boolean ignoreResourceNotFound)
      • setLocalOverride

        public void setLocalOverride​(boolean localOverride)
      • setIgnoreUnresolvablePlaceholders

        public void setIgnoreUnresolvablePlaceholders​(boolean ignoreUnresolvablePlaceholders)
      • setOrder

        public void setOrder​(int order)
      • setPlaceholderPrefix

        public void setPlaceholderPrefix​(String placeholderPrefix)
      • setPlaceholderSuffix

        public void setPlaceholderSuffix​(String placeholderSuffix)
      • setSearchSystemEnvironment

        public void setSearchSystemEnvironment​(boolean searchSystemEnvironment)
      • setSystemPropertiesMode

        public void setSystemPropertiesMode​(int systemPropertiesMode)
      • setBeanNameAtEnd

        public void setBeanNameAtEnd​(boolean beanNameAtEnd)
      • setBeanNameSeparator

        public void setBeanNameSeparator​(String beanNameSeparator)
      • setIgnoreInvalidKeys

        public void setIgnoreInvalidKeys​(boolean ignoreInvalidKeys)