Polish info contributor feature

This commit improves the `InfoContributor` infrastructure as follows:

* `InfoEndpoint` no longer breaks its public API and returns a Map as
before
* `Info` is now immutable
* All properties of the build are now displayed. Since we control the
generation of that file, there is no longer a mode to restrict what's
shown
* Build info is now generated in `META-INF/build-info.properties` by
default

Closes gh-5734
This commit is contained in:
Stephane Nicoll
2016-05-06 10:52:26 +02:00
parent a1413bdb2d
commit 21536f64e1
22 changed files with 93 additions and 84 deletions

View File

@@ -25,8 +25,8 @@ import java.util.Map;
import java.util.Properties;
/**
* A {@code BuildPropertiesWriter} writes the {@code build.properties} for consumption by
* the Actuator.
* A {@code BuildPropertiesWriter} writes the {@code build-info.properties} for
* consumption by the Actuator.
*
* @author Andy Wilkinson
* @author Stephane Nicoll