Interface PropertiesInfoSource
- All Superinterfaces:
InfoSource
,Ordered
- All Known Implementing Classes:
BuildInfoSource
,GitInfoSource
Extends InfoEndpoint
to add a helper method for retrieving a
PropertySource
from a properties file.
- Since:
- 1.0
- Author:
- Zachary Klein
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<PropertySource>
retrievePropertiesPropertySource
(String path, String prefix, String extension, ResourceResolver resourceResolver) ExtendsInfoEndpoint
to add a helper method for retrieving aPropertySource
from a properties file.Methods inherited from interface io.micronaut.management.endpoint.info.InfoSource
getSource
-
Method Details
-
retrievePropertiesPropertySource
default Optional<PropertySource> retrievePropertiesPropertySource(String path, String prefix, String extension, ResourceResolver resourceResolver) Extends
InfoEndpoint
to add a helper method for retrieving aPropertySource
from a properties file.- Parameters:
path
- The path to the properties fileprefix
- prefix for resolving the file (used if not included inpath
)extension
- file extension (used if not included inpath
)resourceResolver
- Instance ofResourceResolver
to resolve the file location- Returns:
- An
Optional
ofPropertySource
containing the values from the properties file
-