Package org.apache.myfaces.extensions.cdi.core.api.provider

Examples of org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider


    private void broadcastBeforeFacesRequestEvent(FacesContext facesContext)
    {
        lazyInit();
        if(this.beforeAfterFacesRequestBroadcaster != null)
        {
            BeanManagerProvider beanManagerProvider = BeanManagerProvider.getInstance();
            EditableWindowContextManager windowContextManager =
                    beanManagerProvider.getContextualReference(EditableWindowContextManager.class);
            WindowHandler windowHandler =
                    beanManagerProvider.getContextualReference(WindowHandler.class);
            WindowContextConfig windowContextConfig =
                    beanManagerProvider.getContextualReference(WindowContextConfig.class);

            ConversationUtils.tryToRestoreTheWindowIdEagerly(facesContext,
                    windowContextManager, windowHandler, windowContextConfig);

            this.beforeAfterFacesRequestBroadcaster.broadcastBeforeFacesRequestEvent(facesContext);
View Full Code Here


    private void broadcastBeforeFacesRequestEvent(FacesContext facesContext)
    {
        lazyInit();
        if(this.beforeAfterFacesRequestBroadcaster != null)
        {
            BeanManagerProvider beanManagerProvider = BeanManagerProvider.getInstance();
            EditableWindowContextManager windowContextManager =
                    beanManagerProvider.getContextualReference(EditableWindowContextManager.class);
            WindowHandler windowHandler =
                    beanManagerProvider.getContextualReference(WindowHandler.class);
            WindowContextConfig windowContextConfig =
                    beanManagerProvider.getContextualReference(WindowContextConfig.class);

            ConversationUtils.tryToRestoreTheWindowIdEagerly(facesContext,
                    windowContextManager, windowHandler, windowContextConfig);

            this.beforeAfterFacesRequestBroadcaster.broadcastBeforeFacesRequestEvent(facesContext);
View Full Code Here

        CdiTestContainer cdiContainer = CdiTestContainerLoader.getCdiContainer();
        Assert.assertNotNull(cdiContainer);
        cdiContainer.bootContainer();
        try
        {
            BeanManagerProvider bmp = BeanManagerProvider.getInstance();
            Assert.assertNotNull(bmp);

            BeanManager bm = bmp.getBeanManager();
            Assert.assertNotNull(bm);

            TestBean tb1 = bmp.getContextualReference(TestBean.class);
            Assert.assertNotNull(tb1);

            TestBean tb2 = bmp.getContextualReference(TestBean.class, "extraNameBean");
            Assert.assertNotNull(tb2);
        }
        finally
        {
            cdiContainer.shutdownContainer();
View Full Code Here

    private void broadcastBeforeFacesRequestEvent(FacesContext facesContext)
    {
        lazyInit();
        if (this.beforeAfterFacesRequestBroadcaster != null)
        {
            BeanManagerProvider beanManagerProvider = BeanManagerProvider.getInstance();
            EditableWindowContextManager windowContextManager =
                    beanManagerProvider.getContextualReference(EditableWindowContextManager.class);
            WindowHandler windowHandler =
                    beanManagerProvider.getContextualReference(WindowHandler.class);
            WindowContextConfig windowContextConfig =
                    beanManagerProvider.getContextualReference(WindowContextConfig.class);

            ConversationUtils.tryToRestoreTheWindowIdEagerly(facesContext,
                    windowContextManager, windowHandler, windowContextConfig);

            this.beforeAfterFacesRequestBroadcaster.broadcastBeforeFacesRequestEvent(facesContext);
View Full Code Here

                    projectStage = ProjectStage.Production;
                }

                if (TestStage.class.isAssignableFrom(projectStage.getClass()))
                {
                    new BeanManagerProvider()
                    {
                        @Override
                        public void setTestMode()
                        {
                            super.setTestMode();
View Full Code Here

    private void broadcastBeforeFacesRequestEvent(FacesContext facesContext)
    {
        lazyInit();
        if (this.beforeAfterFacesRequestBroadcaster != null)
        {
            BeanManagerProvider beanManagerProvider = BeanManagerProvider.getInstance();
            EditableWindowContextManager windowContextManager =
                    beanManagerProvider.getContextualReference(EditableWindowContextManager.class);
            WindowHandler windowHandler =
                    beanManagerProvider.getContextualReference(WindowHandler.class);
            WindowContextConfig windowContextConfig =
                    beanManagerProvider.getContextualReference(WindowContextConfig.class);

            ConversationUtils.tryToRestoreTheWindowIdEagerly(facesContext,
                    windowContextManager, windowHandler, windowContextConfig);

            this.beforeAfterFacesRequestBroadcaster.broadcastBeforeFacesRequestEvent(facesContext);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider

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.