import org.springframework.beans.factory.support.DefaultListableBeanFactory;
public boolean containsBean(String qualified_bean_name) throws ConfigurationException {
// 1. Update the local variable type to match your modern factory storage type
DefaultListableBeanFactory beanFactory = this.getBeanFactory(qualified_bean_name);
if (beanFactory == null) {
return false;
} else {
// Core string extraction logic remains unchanged
String beanName = qualified_bean_name.substring(qualified_bean_name.lastIndexOf("/") + 1);
// 2. This call works identically as DefaultListableBeanFactory implements BeanFactory
return beanFactory.containsBean(beanName);
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)