Interface PropertiesInfoSource
-
- All Superinterfaces:
InfoSource,io.micronaut.core.order.Ordered
- All Known Implementing Classes:
BuildInfoSource,GitInfoSource
public interface PropertiesInfoSource extends InfoSource
Extends
InfoEndpointto add a helper method for retrieving aPropertySourcefrom a properties file.- Since:
- 1.0
-
-
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)ExtendsInfoEndpointto add a helper method for retrieving aPropertySourcefrom a properties file.-
Methods inherited from interface io.micronaut.management.endpoint.info.InfoSource
getSource
-
-
-
-
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
InfoEndpointto add a helper method for retrieving aPropertySourcefrom 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 ofResourceResolverto resolve the file location- Returns:
- An
OptionalofPropertySourcecontaining the values from the properties file
-
-