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

invoke() — spring-boot Function Reference

Architecture documentation for the invoke() function in MappedObject.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  438c1049_02c5_bb55_79d6_bc1f335dc740["invoke()"]
  83af8cfd_36a5_2537_9917_96c2d1426112["getName()"]
  438c1049_02c5_bb55_79d6_bc1f335dc740 -->|calls| 83af8cfd_36a5_2537_9917_96c2d1426112
  5570416e_ee65_4ea8_3148_31cb466f3068["valueForProperty()"]
  438c1049_02c5_bb55_79d6_bc1f335dc740 -->|calls| 5570416e_ee65_4ea8_3148_31cb466f3068
  style 438c1049_02c5_bb55_79d6_bc1f335dc740 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/json/MappedObject.java lines 238–253

		@Override
		public @Nullable Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
			Class<?> declaringClass = method.getDeclaringClass();
			if (method.isDefault()) {
				Lookup lookup = this.lookup.in(declaringClass);
				MethodHandle methodHandle = lookup.unreflectSpecial(method, declaringClass).bindTo(proxy);
				return methodHandle.invokeWithArguments();
			}
			if (declaringClass == Object.class) {
				method.invoke(proxy, args);
			}
			Assert.state(args == null || args.length == 0, () -> "Unsupported method " + method);
			String name = getName(method.getName());
			Class<?> type = method.getReturnType();
			return valueForProperty(name, type);
		}

Domain

Subdomains

Frequently Asked Questions

What does invoke() do?
invoke() is a function in the spring-boot codebase.
What does invoke() call?
invoke() calls 2 function(s): getName, valueForProperty.

Analyze Your Own Codebase

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

Try Supermodel Free