Package org.apache.myfaces.context.servlet

Examples of org.apache.myfaces.context.servlet.StartupServletExternalContextImpl


            // 2. A faces-config.xml file is found in the META-INF directory of a jar in the application's classpath.
            // 3. A filename ending in .faces-config.xml is found in the META-INF directory of a jar in the application's classpath.
            // To do this properly it is necessary to use some SPI interfaces MyFaces already has, to deal with OSGi and other
            // environments properly.
            ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true);
            FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory.getFacesConfigResourceProviderFactory(externalContext);
            FacesConfigResourceProvider provider = factory.createFacesConfigResourceProvider(externalContext);
            Collection<URL> metaInfFacesConfigUrls =  provider.getMetaInfConfigurationResources(externalContext);
           
            if (metaInfFacesConfigUrls != null && !metaInfFacesConfigUrls.isEmpty())
View Full Code Here


        _releaseFacesContext(facesContext);
    }
   
    private FacesContext _createFacesContext(ServletContext servletContext, boolean startup)
    {
        ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup);
        ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
        FacesContext facesContext = new StartupFacesContextImpl(externalContext,
                (ReleaseableExternalContext) externalContext, exceptionHandler, startup);
       
        // If getViewRoot() is called during application startup or shutdown,
View Full Code Here

        _releaseFacesContext(facesContext);
    }
   
    private FacesContext _createFacesContext(ServletContext servletContext, boolean startup)
    {
        ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup);
        ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
        FacesContext facesContext = new StartupFacesContextImpl(externalContext,
                (ReleaseableExternalContext) externalContext, exceptionHandler, startup);
       
        // If getViewRoot() is called during application startup or shutdown,
View Full Code Here

            // 2. A faces-config.xml file is found in the META-INF directory of a jar in the application's classpath.
            // 3. A filename ending in .faces-config.xml is found in the META-INF directory of a jar in the application's classpath.
            // To do this properly it is necessary to use some SPI interfaces MyFaces already has, to deal with OSGi and other
            // environments properly.
            ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true);
            FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory.getFacesConfigResourceProviderFactory(externalContext);
            FacesConfigResourceProvider provider = factory.createFacesConfigResourceProvider(externalContext);
            Collection<URL> metaInfFacesConfigUrls =  provider.getMetaInfConfigurationResources(externalContext);
           
            if (metaInfFacesConfigUrls != null && !metaInfFacesConfigUrls.isEmpty())
View Full Code Here

        _releaseFacesContext(facesContext);
    }
   
    private FacesContext _createFacesContext(ServletContext servletContext, boolean startup)
    {
        ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup);
        ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
        FacesContext facesContext = new StartupFacesContextImpl(externalContext,
                (ReleaseableExternalContext) externalContext, exceptionHandler, startup);
       
        // If getViewRoot() is called during application startup or shutdown,
View Full Code Here

            // 3. A filename ending in .faces-config.xml is found in the META-INF directory of a jar in
            //    the application's classpath.
            // To do this properly it is necessary to use some SPI interfaces MyFaces already has, to
            // deal with OSGi and other
            // environments properly.
            ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true);
            FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory.
                getFacesConfigResourceProviderFactory(externalContext);
            FacesConfigResourceProvider provider = factory.createFacesConfigResourceProvider(externalContext);
            Collection<URL> metaInfFacesConfigUrls =  provider.getMetaInfConfigurationResources(externalContext);
           
View Full Code Here

            // 3. A filename ending in .faces-config.xml is found in the META-INF directory of a jar in
            //    the application's classpath.
            // To do this properly it is necessary to use some SPI interfaces MyFaces already has, to
            // deal with OSGi and other
            // environments properly.
            ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true);
            FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory.
                getFacesConfigResourceProviderFactory(externalContext);
            FacesConfigResourceProvider provider = factory.createFacesConfigResourceProvider(externalContext);
            Collection<URL> metaInfFacesConfigUrls =  provider.getMetaInfConfigurationResources(externalContext);
           
View Full Code Here

                // through timeout. In that case, create a dummy FacesContext for this one
                // like the one used in startup or shutdown and invoke the destroy method.
                try
                {
                    ServletContext servletContext = event.getSession().getServletContext();
                    ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false);
                    ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
                    facesContext = new StartupFacesContextImpl(externalContext,
                            (ReleaseableExternalContext) externalContext, exceptionHandler, false);
                    _viewScopeHandler.onSessionDestroyed();
                }
View Full Code Here

                applicationContextBean.getServletContext() != null)
            {
                try
                {
                    ServletContext servletContext = applicationContextBean.getServletContext();
                    ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false);
                    ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
                    facesContext = new StartupFacesContextImpl(externalContext,
                            (ReleaseableExternalContext) externalContext, exceptionHandler, false);
                    ViewScopeContextImpl.destroyAllActive(contextualStorage);
                }
View Full Code Here

                applicationContextBean.getServletContext() != null)
            {
                try
                {
                    ServletContext servletContext = applicationContextBean.getServletContext();
                    ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false);
                    ExceptionHandler exceptionHandler = new ExceptionHandlerImpl();
                    facesContext = new StartupFacesContextImpl(externalContext,
                            (ReleaseableExternalContext) externalContext, exceptionHandler, false);
                    for (ViewScopeContextualStorage contextualStorage : oldWindowContextStorages.values())
                    {
View Full Code Here

TOP

Related Classes of org.apache.myfaces.context.servlet.StartupServletExternalContextImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.