package us.codecraft.tinyioc.context;

import us.codecraft.tinyioc.beans.factory.AbstractBeanFactory;

/**
 * @author yihua.huang@dianping.com
 */
public abstract class AbstractApplicationContext implements ApplicationContext {
    protected AbstractBeanFactory beanFactory;

    public AbstractApplicationContext(AbstractBeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }

    public abstract void refresh() throws Exception;

    @Override
    public Object getBean(String name) {
        return beanFactory.getBean(name);
    }
}

@@ -400,25 +400,16 @@
  public 
-abstract 
 void ref
@@ -431,17 +431,23 @@
 xception
-;
+%7B%0A    %7D
 %0A%0A    @O

make refresh not abstract