在一个类中如何获取applicationContext对象.

在一个类中怎么获取applicationContext对象...该类必须集成ApplicationObjectSupportpublic class BeanSer

在一个类中怎么获取applicationContext对象...

该类必须集成ApplicationObjectSupport

public class BeanServiceImpl extends ApplicationObjectSupport implements
??BeanService {

?public Object getBean(String beanID) {
??return getApplicationContext().getBean(beanID);

?}
}