Class GitInfoSource

    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      GitInfoSource​(io.micronaut.core.io.ResourceResolver resourceResolver, java.lang.String gitPropertiesPath)  
    • 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.core.order.Ordered

        getOrder
    • Constructor Detail

      • GitInfoSource

        public GitInfoSource​(io.micronaut.core.io.ResourceResolver resourceResolver,
                             @Value("${endpoints.info.git.location:git.properties}")
                             java.lang.String gitPropertiesPath)
        Parameters:
        resourceResolver - A ResourceResolver
        gitPropertiesPath - The path for the git properties file
    • Method Detail

      • 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.