Create BeanFactory Interface.