Class GitInfoSource
java.lang.Object
io.micronaut.management.endpoint.info.source.GitInfoSource
- All Implemented Interfaces:
Ordered,InfoSource,PropertiesInfoSource
@Singleton
@Requires(beans=InfoEndpoint.class) @Requires(property="endpoints.info.git.enabled",notEquals="false")
public class GitInfoSource
extends Object
implements PropertiesInfoSource
An InfoSource that retrieves info from Git properties.
- Since:
- 1.0
- Author:
- Zachary Klein
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.management.endpoint.info.source.PropertiesInfoSource
retrievePropertiesPropertySource
-
Constructor Details
-
GitInfoSource
public GitInfoSource(ResourceResolver resourceResolver, @Value("${endpoints.info.git.location:git.properties}") String gitPropertiesPath) - Parameters:
resourceResolver- AResourceResolvergitPropertiesPath- The path for the git properties file
-
-
Method Details
-
getSource
- Specified by:
getSourcein interfaceInfoSource- Returns:
- A publisher that returns a
PropertySourcecontaining data to be added to the endpoint response.
-