/** * @param environment The {@link Environment} */ public ConfigurationInfoSource(Environment environment) { this.environment = environment; this.supplier = SupplierUtil.memoized(this::retrieveConfigurationInfo); }
/** * @param environment The {@link Environment} */ public ConfigurationInfoSource(Environment environment) { this.environment = environment; this.supplier = SupplierUtil.memoized(this::retrieveConfigurationInfo); }
/** * @param resourceResolver A {@link ResourceResolver} * @param gitPropertiesPath The path for the git properties file */ public GitInfoSource( ResourceResolver resourceResolver, @Value("${endpoints.info.git.location:git.properties}") String gitPropertiesPath) { this.resourceResolver = resourceResolver; this.supplier = SupplierUtil.memoized(this::retrieveGitInfo); this.gitPropertiesPath = gitPropertiesPath; }
/** * @param resourceResolver A {@link ResourceResolver} * @param buildPropertiesPath The build properties path */ public BuildInfoSource( ResourceResolver resourceResolver, @Value("${endpoints.info.build.location:META-INF/build-info.properties}") String buildPropertiesPath) { this.resourceResolver = resourceResolver; this.supplier = SupplierUtil.memoized(this::retrieveBuildInfo); this.buildPropertiesPath = buildPropertiesPath; }
/** * @param resourceResolver A {@link ResourceResolver} * @param buildPropertiesPath The build properties path */ public BuildInfoSource( ResourceResolver resourceResolver, @Value("${endpoints.info.build.location:META-INF/build-info.properties}") String buildPropertiesPath) { this.resourceResolver = resourceResolver; this.supplier = SupplierUtil.memoized(this::retrieveBuildInfo); this.buildPropertiesPath = buildPropertiesPath; }
/** * @param resourceResolver A {@link ResourceResolver} * @param gitPropertiesPath The path for the git properties file */ public GitInfoSource( ResourceResolver resourceResolver, @Value("${endpoints.info.git.location:git.properties}") String gitPropertiesPath) { this.resourceResolver = resourceResolver; this.supplier = SupplierUtil.memoized(this::retrieveGitInfo); this.gitPropertiesPath = gitPropertiesPath; }