1 22 23 package org.jboss.spring.factory; 24 25 import org.springframework.beans.factory.BeanFactory; 26 import org.springframework.beans.factory.config.ConfigurableBeanFactory; 27 import org.springframework.core.io.Resource; 28 29 32 public class BeanFactoryLoaderImpl extends AbstractBeanFactoryLoader 33 { 34 35 protected BeanFactory createBeanFactory(String defaultName, Resource resource) 36 { 37 return new NamedXmlBeanFactory(defaultName, resource); 38 } 39 40 protected void doClose(BeanFactory beanFactory) 41 { 42 ((ConfigurableBeanFactory) beanFactory).destroySingletons(); 43 } 44 45 protected Class getExactBeanFactoryClass() 46 { 47 return BeanFactory.class; 48 } 49 50 } 51 | Popular Tags |