类 Info.Builder
java.lang.Object
org.springframework.boot.actuate.info.Info.Builder
- 封闭类:
Info
Builder for creating immutable
Info
instances.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()
Create a newInfo
instance based on the state of this builder.withDetail
(String key, Object value) Record detail using givenkey
andvalue
.withDetails
(Map<String, Object> details) Record several details.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
withDetail
Record detail using givenkey
andvalue
.- 参数:
key
- the detail keyvalue
- the detail value- 返回:
- this
Info.Builder
instance
-
withDetails
Record several details.- 参数:
details
- the details- 返回:
- this
Info.Builder
instance - 另请参阅:
-
build
Create a newInfo
instance based on the state of this builder.- 返回:
- a new
Info
instance
-