Class BuildInfoSource
- java.lang.Object
-
- io.micronaut.management.endpoint.info.source.BuildInfoSource
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,InfoSource,PropertiesInfoSource
@Singleton @Requires(beans=InfoEndpoint.class) @Requires(property="endpoints.info.build.enabled",notEquals="false") public class BuildInfoSource extends java.lang.Object implements PropertiesInfoSource
An
InfoSourcethat retrieves info from build properties.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BuildInfoSource(io.micronaut.core.io.ResourceResolver resourceResolver, java.lang.String buildPropertiesPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>getSource()-
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 Detail
-
BuildInfoSource
public BuildInfoSource(io.micronaut.core.io.ResourceResolver resourceResolver, @Value("${endpoints.info.build.location:META-INF/build-info.properties}") java.lang.String buildPropertiesPath)- Parameters:
resourceResolver- AResourceResolverbuildPropertiesPath- The build properties path
-
-
Method Detail
-
getSource
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getSource()
- Specified by:
getSourcein interfaceInfoSource- Returns:
- A publisher that returns a
PropertySourcecontaining data to be added to the endpoint response.
-
-