Class FilePropertySource


  • public class FilePropertySource
    extends org.springframework.core.env.PropertySource
    To load properties from files, such as a secret mounted to the container.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

        org.springframework.core.env.PropertySource.StubPropertySource
    • Field Summary

      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Constructor Summary

      Constructors 
      Constructor Description
      FilePropertySource​(String name, org.springframework.context.ApplicationContext applicationContext, String directory)  
    • Constructor Detail

      • FilePropertySource

        public FilePropertySource​(String name,
                                  org.springframework.context.ApplicationContext applicationContext,
                                  String directory)
    • Method Detail

      • getProperty

        public Object getProperty​(String name)
        Specified by:
        getProperty in class org.springframework.core.env.PropertySource