Class DotenvPropertySource


  • public class DotenvPropertySource
    extends org.springframework.core.env.PropertySource<DotenvPropertyLoader>
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String DOTENV_PROPERTY_SOURCE_NAME
      Name of the env PropertySource.
      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addToEnvironment​(org.springframework.core.env.ConfigurableEnvironment environment)  
      java.lang.Object getProperty​(java.lang.String name)
      Return the value associated with the given name, or null if not found.
      • Methods inherited from class org.springframework.core.env.PropertySource

        containsProperty, equals, getName, getSource, hashCode, named, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DOTENV_PROPERTY_SOURCE_NAME

        public static final java.lang.String DOTENV_PROPERTY_SOURCE_NAME
        Name of the env PropertySource.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DotenvPropertySource

        public DotenvPropertySource​(java.lang.String name,
                                    DotenvConfig dotenvConfig)
      • DotenvPropertySource

        public DotenvPropertySource​(DotenvConfig dotenvConfig)
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Return the value associated with the given name, or null if not found.
        Specified by:
        getProperty in class org.springframework.core.env.PropertySource<DotenvPropertyLoader>
        Parameters:
        name - the property to find
        See Also:
        PropertyResolver.getRequiredProperty(String)
      • addToEnvironment

        public static void addToEnvironment​(org.springframework.core.env.ConfigurableEnvironment environment)