|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2008 the original author or authors. |
|
|
|
* Copyright 2002-2009 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -112,6 +112,15 @@ public class BeanDefinitionHolder implements BeanMetadataElement { |
|
|
|
return this.beanDefinition.getSource(); |
|
|
|
return this.beanDefinition.getSource(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Determine whether the given candidate name matches the bean name |
|
|
|
|
|
|
|
* or the aliases stored in this bean definition. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public boolean matchesName(String candidateName) { |
|
|
|
|
|
|
|
return (candidateName != null && |
|
|
|
|
|
|
|
(candidateName.equals(this.beanName) || ObjectUtils.containsElement(this.aliases, candidateName))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return a friendly, short description for the bean, stating name and aliases. |
|
|
|
* Return a friendly, short description for the bean, stating name and aliases. |
|
|
|
|