/** * Service destroy event observer. * * During application shutdown it is container specific whether * this observer being called, or not. * Application context destroy may happen earlier, and cleanup * done by {@link #destroyAll()}. * * @param event service destroy event */ private void onServiceDestroy(@Observes(notifyObserver = IF_EXISTS) ServiceDestroyEvent event) { if (!(event.getSource() instanceof VaadinServletService)) { return; } VaadinServletService service = (VaadinServletService) event.getSource(); String servletName = service.getServlet().getServletName(); destroy(servletName); }
/** * Service destroy event observer. * * During application shutdown it is container specific whether * this observer being called, or not. * Application context destroy may happen earlier, and cleanup * done by {@link #destroyAll()}. * * @param event service destroy event */ private void onServiceDestroy(@Observes(notifyObserver = IF_EXISTS) ServiceDestroyEvent event) { if (!(event.getSource() instanceof VaadinServletService)) { return; } VaadinServletService service = (VaadinServletService) event.getSource(); String servletName = service.getServlet().getServletName(); destroy(servletName); }
/** * Service destroy event observer. * * During application shutdown it is container specific whether * this observer being called, or not. * Application context destroy may happen earlier, and cleanup * done by {@link #destroyAll()}. * * @param event service destroy event */ private void onServiceDestroy(@Observes(notifyObserver = IF_EXISTS) ServiceDestroyEvent event) { if (!(event.getSource() instanceof VaadinServletService)) { return; } VaadinServletService service = (VaadinServletService) event.getSource(); String servletName = service.getServlet().getServletName(); destroy(servletName); }