Interface PropertiesInfoSource

All Superinterfaces:
InfoSource, Ordered
All Known Implementing Classes:
BuildInfoSource, GitInfoSource

public interface PropertiesInfoSource extends InfoSource

Extends InfoEndpoint to add a helper method for retrieving a PropertySource from a properties file.

Since:
1.0
Author:
Zachary Klein
  • Method Details

    • retrievePropertiesPropertySource

      default Optional<PropertySource> retrievePropertiesPropertySource(String path, String prefix, String extension, ResourceResolver resourceResolver)

      Extends InfoEndpoint to add a helper method for retrieving a PropertySource from a properties file.

      Parameters:
      path - The path to the properties file
      prefix - prefix for resolving the file (used if not included in path)
      extension - file extension (used if not included in path)
      resourceResolver - Instance of ResourceResolver to resolve the file location
      Returns:
      An Optional of PropertySource containing the values from the properties file