getAnnotation() — spring-boot Function Reference
Architecture documentation for the getAnnotation() function in Bindable.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ce02f572_c486_43df_ae0a_9908cf5bb011["getAnnotation()"] e5d6e494_2cb3_8b96_78f5_a0a3b080e57f["getAnnotation()"] e5d6e494_2cb3_8b96_78f5_a0a3b080e57f -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 e87455c4_2bcc_2604_575c_350679e30be6["bind()"] e87455c4_2bcc_2604_575c_350679e30be6 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 d4d55df6_6767_f4b0_51f7_b000f762e276["bindOrCreate()"] d4d55df6_6767_f4b0_51f7_b000f762e276 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 b29e4c8d_349d_569b_228d_d7bb880eb65b["getValidators()"] b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc["getAllReturnsAll()"] 1e12bf1b_7cdd_76d3_6b77_556188f5dbfc -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 972e5247_f31d_e501_cb5c_f2381f9b3175["getWhenBeanIsAnnotatedReturnsBean()"] 972e5247_f31d_e501_cb5c_f2381f9b3175 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 6a68298c_0765_d9ae_c255_3d50090c878e["getWhenFactoryMethodIsAnnotatedReturnsBean()"] 6a68298c_0765_d9ae_c255_3d50090c878e -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 946cdfa6_2afd_e50d_563d_cf1092452bcb["getWhenImportedFactoryMethodIsAnnotatedAndMetadataCachingIsDisabledReturnsBean()"] 946cdfa6_2afd_e50d_563d_cf1092452bcb -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 3933828b_8c24_41dc_8a4e_fa9aac2274bf["getWhenImportedFactoryMethodIsAnnotatedReturnsBean()"] 3933828b_8c24_41dc_8a4e_fa9aac2274bf -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 65309196_5ffd_a999_f2dd_89dbb99b824e["getWhenHasFactoryMethodAndBeanAnnotationFavorsFactoryMethod()"] 65309196_5ffd_a999_f2dd_89dbb99b824e -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 6851e2fd_5edf_86cf_9128_084b6f872095["getWhenHasValidatedBeanBindsWithBeanAnnotation()"] 6851e2fd_5edf_86cf_9128_084b6f872095 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 17442450_37e4_9d75_696a_51ffd748b36c["getWhenHasValidatedFactoryMethodBindsWithFactoryMethodAnnotation()"] 17442450_37e4_9d75_696a_51ffd748b36c -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 c918f51e_9483_ce02_7d2e_d1fdda0450f2["getWhenHasValidatedBeanAndFactoryMethodBindsWithFactoryMethodAnnotation()"] c918f51e_9483_ce02_7d2e_d1fdda0450f2 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 d858f339_6593_85bb_ba3f_105353b06787["forValueObjectWithConstructorBindingAnnotatedClassReturnsBean()"] d858f339_6593_85bb_ba3f_105353b06787 -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011 style ce02f572_c486_43df_ae0a_9908cf5bb011 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java lines 112–120
@SuppressWarnings("unchecked")
public <A extends Annotation> @Nullable A getAnnotation(Class<A> type) {
for (Annotation annotation : this.annotations) {
if (type.isInstance(annotation)) {
return (A) annotation;
}
}
return null;
}
Domain
Subdomains
Called By
- bind()
- bindOrCreate()
- forValueObjectWithConstructorBindingAnnotatedClassReturnsBean()
- forValueObjectWithRecordReturnsBean()
- getAllReturnsAll()
- getAnnotation()
- getValidators()
- getWhenBeanIsAnnotatedReturnsBean()
- getWhenFactoryMethodIsAnnotatedReturnsBean()
- getWhenHasFactoryMethodAndBeanAnnotationFavorsFactoryMethod()
- getWhenHasValidatedBeanAndFactoryMethodBindsWithFactoryMethodAnnotation()
- getWhenHasValidatedBeanBindsWithBeanAnnotation()
- getWhenHasValidatedFactoryMethodBindsWithFactoryMethodAnnotation()
- getWhenImportedFactoryMethodIsAnnotatedAndMetadataCachingIsDisabledReturnsBean()
- getWhenImportedFactoryMethodIsAnnotatedReturnsBean()
Source
Frequently Asked Questions
What does getAnnotation() do?
getAnnotation() is a function in the spring-boot codebase.
What calls getAnnotation()?
getAnnotation() is called by 15 function(s): bind, bindOrCreate, forValueObjectWithConstructorBindingAnnotatedClassReturnsBean, forValueObjectWithRecordReturnsBean, getAllReturnsAll, getAnnotation, getValidators, getWhenBeanIsAnnotatedReturnsBean, and 7 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free