Class RecordConfigBinder
java.lang.Object
cloud.opencode.base.config.bind.RecordConfigBinder
Record Configuration Binder for JDK 25 Records
JDK 25 Record的配置绑定器
Usage Examples | 使用示例:
record DatabaseConfig(
@Required String url,
@Required String username,
@DefaultValue("10") int maxPoolSize
) {}
RecordConfigBinder binder = new RecordConfigBinder(config, converters);
DatabaseConfig dbConfig = binder.bind("database", DatabaseConfig.class);
Features | 主要功能:
- Core RecordConfigBinder functionality - RecordConfigBinder核心功能
Security | 安全性:
- Thread-safe: Yes (immutable record) - 线程安全: 是(不可变记录)
- Null-safe: Partial (validates inputs) - 空值安全: 部分(验证输入)
- Since:
- JDK 25, opencode-base-config V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RecordConfigBinder
-
-
Method Details
-
bind
-