@Singleton @Requires(beans=InfoEndpoint.class) @Requires(property="endpoints.info.git.enabled",notEquals="false") public class GitInfoSource extends java.lang.Object implements PropertiesInfoSource
An InfoSource
that retrieves info from Git properties.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
GitInfoSource(ResourceResolver resourceResolver,
java.lang.String gitPropertiesPath) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.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}") java.lang.String gitPropertiesPath)
resourceResolver
- A ResourceResolver
gitPropertiesPath
- The path for the git properties filepublic org.reactivestreams.Publisher<PropertySource> getSource()
getSource
in interface InfoSource
PropertySource
containing data to be added to the endpoint response.