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