Browse Source

specified excluded names matched against unprefixed FactoryBean names as well (SPR-5926)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1945 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
fd6037099c
  1. 5
      org.springframework.context/src/main/java/org/springframework/jmx/export/MBeanExporter.java

5
org.springframework.context/src/main/java/org/springframework/jmx/export/MBeanExporter.java

@ -904,7 +904,10 @@ public class MBeanExporter extends MBeanRegistrationSupport @@ -904,7 +904,10 @@ public class MBeanExporter extends MBeanRegistrationSupport
* Indicates whether or not a particular bean name is present in the excluded beans list.
*/
private boolean isExcluded(String beanName) {
return (this.excludedBeans != null && this.excludedBeans.contains(beanName));
return (this.excludedBeans != null &&
(this.excludedBeans.contains(beanName) ||
(beanName.startsWith(BeanFactory.FACTORY_BEAN_PREFIX) &&
this.excludedBeans.contains(beanName.substring(BeanFactory.FACTORY_BEAN_PREFIX.length())))));
}

Loading…
Cancel
Save