getLibrarySelector() — spring-boot Function Reference
Architecture documentation for the getLibrarySelector() function in CustomLayersProvider.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD afab24dc_a8db_69cc_85b0_613ed8604f6e["getLibrarySelector()"] 33c1e2ec_48d2_f989_5bf5_70031117e0ce["getLibrarySelectors()"] 33c1e2ec_48d2_f989_5bf5_70031117e0ce -->|calls| afab24dc_a8db_69cc_85b0_613ed8604f6e 11efb941_46e1_c731_b592_b04048e8a6cf["getChildNodeTextContent()"] afab24dc_a8db_69cc_85b0_613ed8604f6e -->|calls| 11efb941_46e1_c731_b592_b04048e8a6cf cb34c1bc_a4f4_c1d4_9ed7_b9e2e2553cf1["getChildElement()"] afab24dc_a8db_69cc_85b0_613ed8604f6e -->|calls| cb34c1bc_a4f4_c1d4_9ed7_b9e2e2553cf1 style afab24dc_a8db_69cc_85b0_613ed8604f6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/CustomLayersProvider.java lines 127–147
private ContentSelector<Library> getLibrarySelector(Element element,
Function<String, ContentFilter<Library>> filterFactory) {
Layer layer = new Layer(element.getAttribute("layer"));
List<String> includes = getChildNodeTextContent(element, "include");
List<String> excludes = getChildNodeTextContent(element, "exclude");
Element includeModuleDependencies = getChildElement(element, "includeModuleDependencies");
Element excludeModuleDependencies = getChildElement(element, "excludeModuleDependencies");
List<ContentFilter<Library>> includeFilters = includes.stream()
.map(filterFactory)
.collect(Collectors.toCollection(ArrayList::new));
if (includeModuleDependencies != null) {
includeFilters.add(Library::isLocal);
}
List<ContentFilter<Library>> excludeFilters = excludes.stream()
.map(filterFactory)
.collect(Collectors.toCollection(ArrayList::new));
if (excludeModuleDependencies != null) {
excludeFilters.add(Library::isLocal);
}
return new IncludeExcludeContentSelector<>(layer, includeFilters, excludeFilters);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getLibrarySelector() do?
getLibrarySelector() is a function in the spring-boot codebase.
What does getLibrarySelector() call?
getLibrarySelector() calls 2 function(s): getChildElement, getChildNodeTextContent.
What calls getLibrarySelector()?
getLibrarySelector() is called by 1 function(s): getLibrarySelectors.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free