本文整理了Java中org.springframework.context.annotation.Bean.name()
方法的一些代码示例,展示了Bean.name()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bean.name()
方法的具体详情如下:
包路径:org.springframework.context.annotation.Bean
类名称:Bean
方法名:name
暂无
代码示例来源:origin: spring-projects/spring-integration
protected String resolveTargetBeanName(Method method) {
String id = method.getName();
String[] names = AnnotationUtils.getAnnotation(method, Bean.class).name(); // NOSONAR never null
if (!ObjectUtils.isEmpty(names)) {
id = names[0];
}
return id;
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
protected String resolveTargetBeanName(Method method) {
String id = method.getName();
String[] names = AnnotationUtils.getAnnotation(method, Bean.class).name(); // NOSONAR never null
if (!ObjectUtils.isEmpty(names)) {
id = names[0];
}
return id;
}
代码示例来源:origin: nz.co.senanque/madura-bundle
String[] beanNames = beanAnnotation.name();
if (beanNames != null && beanNames.length > 0 && StringUtils.hasText(beanNames[0])) {
methodBeanName = beanAnnotation.name()[0];
代码示例来源:origin: com.alipay.sofa/runtime-sofa-boot-starter
beanNames.add(m.getName());
if (bean != null) {
beanNames.addAll(Arrays.asList(bean.name()));
beanNames.addAll(Arrays.asList(bean.value()));
内容来源于网络,如有侵权,请联系作者删除!