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 Object implements PropertiesInfoSource

An InfoSource that retrieves info from build properties.

Since:
1.0
  • Constructor Details

    • BuildInfoSource

      public BuildInfoSource(io.micronaut.core.io.ResourceResolver resourceResolver, @Value("${endpoints.info.build.location:META-INF/build-info.properties}") String buildPropertiesPath)
      Parameters:
      resourceResolver - A ResourceResolver
      buildPropertiesPath - The build properties path
  • Method Details

    • getSource

      public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getSource()
      Specified by:
      getSource in interface InfoSource
      Returns:
      A publisher that returns a PropertySource containing data to be added to the endpoint response.