ConstructorParameterWithUnitProperties Class — spring-boot Architecture
Architecture documentation for the ConstructorParameterWithUnitProperties class in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 2508–2538
@ConfigurationProperties("test")
static class ConstructorParameterWithUnitProperties {
private final Duration duration;
private final DataSize size;
private final Period period;
@ConstructorBinding
ConstructorParameterWithUnitProperties(@DefaultValue("2") @DurationUnit(ChronoUnit.DAYS) Duration duration,
@DefaultValue("3") @DataSizeUnit(DataUnit.MEGABYTES) DataSize size,
@DefaultValue("4") @PeriodUnit(ChronoUnit.YEARS) Period period) {
this.size = size;
this.duration = duration;
this.period = period;
}
Duration getDuration() {
return this.duration;
}
DataSize getSize() {
return this.size;
}
Period getPeriod() {
return this.period;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free