Class InfoProperties
java.lang.Object
org.springframework.boot.info.InfoProperties
- All Implemented Interfaces:
Iterable<InfoProperties.Entry>
- Direct Known Subclasses:
BuildProperties, GitProperties
Base class for components exposing unstructured data with dedicated methods for well
known keys.
- Since:
- 1.4.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInfoProperties(Properties entries) Create an instance with the specified entries. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturn the value of the specified property ornull.@Nullable InstantgetInstant(String key) iterator()Return aPropertySourceof this instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
InfoProperties
Create an instance with the specified entries.- Parameters:
entries- the information to expose
-
-
Method Details
-
get
-
getInstant
-
iterator
- Specified by:
iteratorin interfaceIterable<InfoProperties.Entry>
-
toPropertySource
Return aPropertySourceof this instance.- Returns:
- a
PropertySource
-