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

add() — spring-boot Function Reference

Architecture documentation for the add() function in ServletContextInitializerBeans.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  967f727b_71f7_a82f_56ca_adc8ce796f30["add()"]
  4fc05681_2915_ec5b_f317_d697807286f6["addServletContextInitializerBean()"]
  4fc05681_2915_ec5b_f317_d697807286f6 -->|calls| 967f727b_71f7_a82f_56ca_adc8ce796f30
  41e342d7_3616_5ca0_0f57_c89425379825["addAsRegistrationBean()"]
  41e342d7_3616_5ca0_0f57_c89425379825 -->|calls| 967f727b_71f7_a82f_56ca_adc8ce796f30
  189f2ba0_3def_5e8d_7548_e1e5bdb8d7f9["contains()"]
  967f727b_71f7_a82f_56ca_adc8ce796f30 -->|calls| 189f2ba0_3def_5e8d_7548_e1e5bdb8d7f9
  style 967f727b_71f7_a82f_56ca_adc8ce796f30 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializerBeans.java lines 415–420

		boolean add(Class<?> type, Object object) {
			if (contains(type, object)) {
				return false;
			}
			return this.seen.computeIfAbsent(type, (ignore) -> new HashSet<>()).add(object);
		}

Domain

Subdomains

Calls

  • contains()

Frequently Asked Questions

What does add() do?
add() is a function in the spring-boot codebase.
What does add() call?
add() calls 1 function(s): contains.
What calls add()?
add() is called by 2 function(s): addAsRegistrationBean, addServletContextInitializerBean.

Analyze Your Own Codebase

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

Try Supermodel Free