@Refreshable @Requires(beans=InfoEndpoint.class) @Requires(property="endpoints.info.git.enabled",notEquals="false") public class GitInfoSource extends Object implements PropertiesInfoSource
An InfoSource
that retrieves info from Git properties.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
GitInfoSource(ResourceResolver resourceResolver,
String gitPropertiesPath) |
Modifier and Type | Method and Description |
---|---|
Publisher<PropertySource> |
getSource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
retrievePropertiesPropertySource
public GitInfoSource(ResourceResolver resourceResolver, @Value(value="${endpoints.info.git.location:git.properties}") String gitPropertiesPath)
resourceResolver
- A ResourceResolver
gitPropertiesPath
- The path for the git properties filepublic Publisher<PropertySource> getSource()
getSource
in interface InfoSource
PropertySource
containing data to be added to the endpoint response.