Package org.apache.myfaces.cdi.view

Examples of org.apache.myfaces.cdi.view.ApplicationContextBean


        ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
        beanManager = CDIUtils.getBeanManager(externalContext);
        Object context = externalContext.getContext();
        if (context instanceof ServletContext)
        {
            ApplicationContextBean appBean = CDIUtils.lookup(beanManager,
                ApplicationContextBean.class);
            appBean.setServletContext((ServletContext) context);
        }
    }
View Full Code Here


        ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
        beanManager = CDIUtils.getBeanManager(externalContext);
        Object context = externalContext.getContext();
        if (context instanceof ServletContext)
        {
            ApplicationContextBean appBean = CDIUtils.lookup(beanManager,
                ApplicationContextBean.class);
            appBean.setServletContext((ServletContext) context);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.cdi.view.ApplicationContextBean

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.