org.springframework.core.AliasRegistry Java Examples
The following examples show how to use
org.springframework.core.AliasRegistry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeanRegistrar.java From spring-context-support with Apache License 2.0 | 2 votes |
/** * 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); }