org.springframework.boot.info

Class InfoProperties

    • Constructor Detail

      • InfoProperties

        public InfoProperties(Properties entries)
        Create an instance with the specified entries.
        Parameters:
        entries - the information to expose
    • Method Detail

      • get

        public String get(String key)
        Return the value of the specified property or null.
        Parameters:
        key - the key of the property
        Returns:
        the property value
      • getDate

        public Date getDate(String key)
        Return the value of the specified property as a Date or null if the value is not a valid Long representation of an epoch time.
        Parameters:
        key - the key of the property
        Returns:
        the property value
      • toPropertySource

        public org.springframework.core.env.PropertySource<?> toPropertySource()
        Return a PropertySource of this instance.
        Returns:
        a PropertySource

Copyright © 2016 Pivotal Software, Inc.. All rights reserved.