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