RoundEnvironmentTester Class — spring-boot Architecture
Architecture documentation for the RoundEnvironmentTester class in RoundEnvironmentTester.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/test/RoundEnvironmentTester.java lines 27–49
public class RoundEnvironmentTester {
private final RoundEnvironment roundEnvironment;
RoundEnvironmentTester(RoundEnvironment roundEnvironment) {
this.roundEnvironment = roundEnvironment;
}
/**
* Return the root {@link TypeElement} for the specified {@code type}.
* @param type the type of the class
* @return the {@link TypeElement}
*/
public TypeElement getRootElement(Class<?> type) {
return (TypeElement) this.roundEnvironment.getRootElements()
.stream()
.filter((element) -> element.toString().equals(type.getName()))
.findFirst()
.orElseThrow(() -> new IllegalStateException(
"No element found for " + type + " make sure it is included in the list of classes to compile"));
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free