Interface PropertiesInfoSource

    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<io.micronaut.context.env.PropertySource> retrievePropertiesPropertySource​(java.lang.String path, java.lang.String prefix, java.lang.String extension, io.micronaut.core.io.ResourceResolver resourceResolver)
      Extends InfoEndpoint to add a helper method for retrieving a PropertySource from a properties file.
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
    • Method Detail

      • retrievePropertiesPropertySource

        default java.util.Optional<io.micronaut.context.env.PropertySource> retrievePropertiesPropertySource​(java.lang.String path,
                                                                                                             java.lang.String prefix,
                                                                                                             java.lang.String extension,
                                                                                                             io.micronaut.core.io.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