public void makeBeanFactoryNotSingleton() {
DefaultListableBeanFactory factory = (DefaultListableBeanFactory) this.beanFactory;
for (String name : factory.getBeanDefinitionNames()) {
factory.getBeanDefinition(name).setScope("prototype");
}
this.entities = factory.getBeansOfType(EntityImpl.class);
factory.destroySingletons();
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)