|
|
|
@ -78,8 +78,6 @@ import org.springframework.util.Assert; |
|
|
|
* GenericApplicationContext ctx = new GenericApplicationContext(); |
|
|
|
* GenericApplicationContext ctx = new GenericApplicationContext(); |
|
|
|
* XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(ctx); |
|
|
|
* XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(ctx); |
|
|
|
* xmlReader.loadBeanDefinitions(new ClassPathResource("applicationContext.xml")); |
|
|
|
* xmlReader.loadBeanDefinitions(new ClassPathResource("applicationContext.xml")); |
|
|
|
* PropertiesBeanDefinitionReader propReader = new PropertiesBeanDefinitionReader(ctx); |
|
|
|
|
|
|
|
* propReader.loadBeanDefinitions(new ClassPathResource("otherBeans.properties")); |
|
|
|
|
|
|
|
* ctx.refresh(); |
|
|
|
* ctx.refresh(); |
|
|
|
* |
|
|
|
* |
|
|
|
* MyBean myBean = (MyBean) ctx.getBean("myBean"); |
|
|
|
* MyBean myBean = (MyBean) ctx.getBean("myBean"); |
|
|
|
@ -101,7 +99,6 @@ import org.springframework.util.Assert; |
|
|
|
* @see #registerBeanDefinition |
|
|
|
* @see #registerBeanDefinition |
|
|
|
* @see #refresh() |
|
|
|
* @see #refresh() |
|
|
|
* @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
|
|
|
* @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
|
|
|
* @see org.springframework.beans.factory.support.PropertiesBeanDefinitionReader |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class GenericApplicationContext extends AbstractApplicationContext implements BeanDefinitionRegistry { |
|
|
|
public class GenericApplicationContext extends AbstractApplicationContext implements BeanDefinitionRegistry { |
|
|
|
|
|
|
|
|
|
|
|
|