GenericConfig Class — spring-boot Architecture
Architecture documentation for the GenericConfig class in GenericConfig.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/generic/GenericConfig.java lines 31–108
@TestConfigurationProperties("generic")
public class GenericConfig<T> {
private final Foo foo = new Foo();
public Foo getFoo() {
return this.foo;
}
public static class Foo {
private String name;
@TestNestedConfigurationProperty
private final Bar<String> bar = new Bar<>();
private final Map<String, Bar<Integer>> stringToBar = new HashMap<>();
private final Map<String, Integer> stringToInteger = new HashMap<>();
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Bar<String> getBar() {
return this.bar;
}
public Map<String, Bar<Integer>> getStringToBar() {
return this.stringToBar;
}
public Map<String, Integer> getStringToInteger() {
return this.stringToInteger;
}
}
public static class Bar<U> {
private String name;
@TestNestedConfigurationProperty
private final Biz<String> biz = new Biz<>();
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Biz<String> getBiz() {
return this.biz;
}
public static class Biz<V> {
private String name;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free