类org.springframework.core.AliasRegistry源码实例Demo

下面列出了怎么用org.springframework.core.AliasRegistry的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: spring-context-support   文件: BeanRegistrar.java
/**
 * Detect the alias is present or not in the given bean name from {@link AliasRegistry}
 *
 * @param registry {@link AliasRegistry}
 * @param beanName the bean name
 * @param alias    alias to test
 * @return if present, return <code>true</code>, or <code>false</code>
 */
public static boolean hasAlias(AliasRegistry registry, String beanName, String alias) {
    return hasText(beanName) && hasText(alias) && containsElement(registry.getAliases(beanName), alias);
}
 
 类所在包
 类方法
 同包方法