1 29 30 package nextapp.echo2.webcontainer; 31 32 import nextapp.echo2.app.ApplicationInstance; 33 import nextapp.echo2.webrender.ServiceRegistry; 34 import nextapp.echo2.webrender.WebRenderServlet; 35 import nextapp.echo2.webrender.service.SessionExpiredService; 36 37 43 public abstract class WebContainerServlet extends WebRenderServlet { 44 45 48 public WebContainerServlet() { 49 super(); 50 ServiceRegistry serviceRegistry = WebRenderServlet.getServiceRegistry(); 51 serviceRegistry.add(NewInstanceService.INSTANCE); 52 serviceRegistry.add(ContainerAsyncMonitorService.INSTANCE); 53 serviceRegistry.add(SessionExpiredService.INSTANCE); 54 serviceRegistry.add(ContainerSynchronizeService.INSTANCE); 55 serviceRegistry.add(WindowHtmlService.INSTANCE); 56 } 57 58 64 public abstract ApplicationInstance newApplicationInstance(); 65 } 66 | Popular Tags |