2.abstract beanfactory and do bean initilizing in it