getBeansWithAnnotation


Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
throws BeansException


Find all beans whose Class has the supplied Annotation type.


Parameters:
annotationType - the type of annotation to look for
Returns:
a Map with the matching beans, containing the bean names as keys and the corresponding bean instances as values
Throws:
BeansException - if a bean could not be created

相关文章:

  • 2022-12-23
  • 2021-12-17
  • 2021-08-25
  • 2021-05-13
  • 2021-10-12
  • 2021-12-27
  • 2021-11-25
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2021-06-23
  • 2022-02-28
  • 2021-12-29
  • 2021-11-25
  • 2021-07-31
相关资源
相似解决方案