ApplicationSpec Class — spring-boot Architecture
Architecture documentation for the ApplicationSpec class in LayeredSpec.java from the spring-boot codebase.
Entity Profile
Source Code
build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/LayeredSpec.java lines 324–353
public static class ApplicationSpec extends IntoLayersSpec<IntoLayerSpec> {
@Inject
public ApplicationSpec() {
super(new IntoLayerSpecFactory());
}
/**
* Creates a new {@code ApplicationSpec} with the given {@code contents}.
* @param contents specs for the layers in which application content should be
* included
*/
public ApplicationSpec(IntoLayerSpec... contents) {
super(new IntoLayerSpecFactory(), contents);
}
List<ContentSelector<String>> asSelectors() {
return asSelectors((spec) -> spec.asSelector(ApplicationContentFilter::new));
}
private static final class IntoLayerSpecFactory implements Function<String, IntoLayerSpec>, Serializable {
@Override
public IntoLayerSpec apply(String layer) {
return new IntoLayerSpec(layer);
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free