@Override public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException { super.onStartup(c, ctx); ctx.addListener(new StartupServletContextListener()); } }
@Override public FacesContext initStartupFacesContext(ServletContext servletContext) { // We cannot use FacesContextFactory, because it is necessary to initialize // before Application and RenderKit factories, so we should use different object. return _createFacesContext(servletContext, true); }
@Override public void destroyShutdownFacesContext(FacesContext facesContext) { _releaseFacesContext(facesContext); }
/** * Gets the FacesInitializer for the system. * @param context * @return */ public static FacesInitializer getFacesInitializer(ServletContext context) { FacesInitializer initializer = _getFacesInitializerFromInitParam(context); if (initializer == null) { initializer = _getDefaultFacesInitializer(context); } return initializer; }
public void contextDestroyed(ServletContextEvent event) { doPredestroy(event); if (_facesInitializer != null && _servletContext != null) { _facesInitializer.destroyFaces(_servletContext); } FactoryFinder.releaseFactories(); _servletContext = null; }
public void attributeAdded(HttpSessionBindingEvent event) { _detroyerListener.attributeAdded(event); }
public void attributeRemoved(HttpSessionBindingEvent event) { _detroyerListener.attributeRemoved(event); }
public void sessionCreated(HttpSessionEvent event) { _detroyerListener.sessionCreated(event); }
public void requestInitialized(ServletRequestEvent event) { _detroyerListener.requestInitialized(event); }
public void attributeReplaced(HttpSessionBindingEvent event) { doPreDestroy(event, ManagedBeanBuilder.SESSION); }
public FacesContext initStartupFacesContext(ServletContext servletContext) { // We cannot use FacesContextFactory, because it is necessary to initialize // before Application and RenderKit factories, so we should use different object. return _createFacesContext(servletContext, true); }
public void destroyStartupFacesContext(FacesContext facesContext) { _releaseFacesContext(facesContext); }
public void attributeAdded(ServletRequestAttributeEvent event) { _detroyerListener.attributeAdded(event); }
public void attributeRemoved(ServletContextAttributeEvent event) { _detroyerListener.attributeRemoved(event); }
public FacesContext initShutdownFacesContext(ServletContext servletContext) { return _createFacesContext(servletContext, false); }
@Override public void destroyStartupFacesContext(FacesContext facesContext) { _releaseFacesContext(facesContext); }
public void attributeAdded(HttpSessionBindingEvent event) { _detroyerListener.attributeAdded(event); }
public FacesContext initShutdownFacesContext(ServletContext servletContext) { return _createFacesContext(servletContext, false); }
public void destroyShutdownFacesContext(FacesContext facesContext) { _releaseFacesContext(facesContext); }
@Override public FacesContext initShutdownFacesContext(ServletContext servletContext) { return _createFacesContext(servletContext, false); }