类 InfoProperties
java.lang.Object
org.springframework.boot.info.InfoProperties
- 所有已实现的接口:
Iterable<InfoProperties.Entry>
- 直接已知子类:
BuildProperties,GitProperties
Base class for components exposing unstructured data with dedicated methods for well
known keys.
- 从以下版本开始:
- 1.4.0
- 作者:
- Stephane Nicoll
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return the value of the specified property ornull.getInstant(String key) iterator()Return aPropertySourceof this instance.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
构造器详细资料
-
InfoProperties
Create an instance with the specified entries.- 参数:
entries- the information to expose
-
-
方法详细资料
-
get
Return the value of the specified property ornull.- 参数:
key- the key of the property- 返回:
- the property value
-
getInstant
Return the value of the specified property as anInstantornullif the value is not a validLongrepresentation of an epoch time.- 参数:
key- the key of the property- 返回:
- the property value
-
iterator
- 指定者:
iterator在接口中Iterable<InfoProperties.Entry>
-
toPropertySource
Return aPropertySourceof this instance.- 返回:
- a
PropertySource
-