В моем приложении Stripes я определяю следующий класс:
MyServletListener implements ServletContextListener, HttpSessionListener, HttpSessionAttributeListener {
private SomeService someService;
private AnotherService anotherService;
// remaining implementation omitted
}
Сервисный уровень этого приложения использует Spring для определения и соединения некоторой службы beans в файле XML. Я хотел бы ввести beans, которые реализуют SomeService
и AnotherService
в MyServletListener
, возможно ли это?