In my Stripes app I define the following class:
MyServletListener implements ServletContextListener, HttpSessionListener, HttpSessionAttributeListener {
private SomeService someService;
private AnotherService anotherService;
// remaining implementation omitted
}
The service layer of this app uses Spring to define and wire together some service beans in an XML file. I would like to inject the beans that implement SomeService
and AnotherService
into MyServletListener
, is this possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…