BeanFactory  setup