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
      • getInstant

        public Instant getInstant​(String key)
        Return the value of the specified property as an Instant 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