Class BuildInfoSource
java.lang.Object
io.micronaut.management.endpoint.info.source.BuildInfoSource
- All Implemented Interfaces:
Ordered
,InfoSource
,PropertiesInfoSource
@Singleton
@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.
- Since:
- 1.0
- Author:
- Zachary Klein
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionBuildInfoSource
(ResourceResolver resourceResolver, String buildPropertiesPath) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.management.endpoint.info.source.PropertiesInfoSource
retrievePropertiesPropertySource
-
Constructor Details
-
BuildInfoSource
public BuildInfoSource(ResourceResolver resourceResolver, @Value("${endpoints.info.build.location:META-INF/build-info.properties}") String buildPropertiesPath) - Parameters:
resourceResolver
- AResourceResolver
buildPropertiesPath
- The build properties path
-
-
Method Details
-
getSource
- Specified by:
getSource
in interfaceInfoSource
- Returns:
- A publisher that returns a
PropertySource
containing data to be added to the endpoint response.
-