Home / Function/ noApisThatCauseEagerTaskConfigurationShouldBeCalled() — spring-boot Function Reference

noApisThatCauseEagerTaskConfigurationShouldBeCalled() — spring-boot Function Reference

Architecture documentation for the noApisThatCauseEagerTaskConfigurationShouldBeCalled() function in TaskConfigurationAvoidanceTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d2a7bae7_bd2e_c43f_c689_f1370a8ca6cb["noApisThatCauseEagerTaskConfigurationShouldBeCalled()"]
  7e49e20d_7de2_ce1c_fff6_cf45bfa18412["on()"]
  d2a7bae7_bd2e_c43f_c689_f1370a8ca6cb -->|calls| 7e49e20d_7de2_ce1c_fff6_cf45bfa18412
  3ca9cc7c_a6a6_db7e_2f25_87a6d28a82c6["methodsNamed()"]
  d2a7bae7_bd2e_c43f_c689_f1370a8ca6cb -->|calls| 3ca9cc7c_a6a6_db7e_2f25_87a6d28a82c6
  3d6c3606_287b_d08f_474a_4955f0294b7b["method()"]
  d2a7bae7_bd2e_c43f_c689_f1370a8ca6cb -->|calls| 3d6c3606_287b_d08f_474a_4955f0294b7b
  style d2a7bae7_bd2e_c43f_c689_f1370a8ca6cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/TaskConfigurationAvoidanceTests.java lines 47–58

	@ArchTest
	void noApisThatCauseEagerTaskConfigurationShouldBeCalled(JavaClasses classes) {
		ProhibitedMethods prohibited = new ProhibitedMethods();
		prohibited.on(TaskContainer.class)
			.methodsNamed("create", "findByPath, getByPath")
			.method("withType", Class.class, Action.class);
		prohibited.on(TaskCollection.class).methodsNamed("findByName", "getByName");
		ArchRuleDefinition.noClasses()
			.should()
			.callMethodWhere(DescribedPredicate.describe("it would cause eager task configuration", prohibited))
			.check(classes);
	}

Domain

Subdomains

Frequently Asked Questions

What does noApisThatCauseEagerTaskConfigurationShouldBeCalled() do?
noApisThatCauseEagerTaskConfigurationShouldBeCalled() is a function in the spring-boot codebase.
What does noApisThatCauseEagerTaskConfigurationShouldBeCalled() call?
noApisThatCauseEagerTaskConfigurationShouldBeCalled() calls 3 function(s): method, methodsNamed, on.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free