单项选择题

后台如何在不通过spring注入情况下,直接获得IHibernateDao对象()

A.直接new一个IHibernateDao对象即可
B.无法实现
C.用sessionFactory.getbean()方法
D.用ComponentFactory的getbean方法