public interface PropertiesInfoSource extends InfoSource
Extends InfoEndpoint
to add a helper method for retrieving a
PropertySource
from a properties file.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<PropertySource> |
retrievePropertiesPropertySource(java.lang.String path,
java.lang.String prefix,
java.lang.String extension,
ResourceResolver resourceResolver)
Extends
InfoEndpoint to add a helper method for retrieving a
PropertySource from a properties file. |
getSource
default java.util.Optional<PropertySource> retrievePropertiesPropertySource(java.lang.String path, java.lang.String prefix, java.lang.String extension, ResourceResolver resourceResolver)
Extends InfoEndpoint
to add a helper method for retrieving a
PropertySource
from a properties file.
path
- The path to the properties fileprefix
- 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 locationOptional
of PropertySource
containing the values from the properties file