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