Examples of EditableWindowContextManager


Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        try
        {
            BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();

            EditableWindowContextManager windowContextManager =
                    CodiUtils.getContextualReferenceByClass(beanManager, EditableWindowContextManager.class);

            WindowContextConfig windowContextConfig =
                    CodiUtils.getContextualReferenceByClass(beanManager, WindowContextConfig.class);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        WindowContextManager windowContextManager = ConversationUtils.getWindowContextManager();

        if(windowContextManager instanceof EditableWindowContextManager)
        {
            EditableWindowContextManager editableWindowContextManager =
                    (EditableWindowContextManager)windowContextManager;

            Collection<EditableWindowContext> activeWindowContexts = editableWindowContextManager.getWindowContexts();

            int activeWindowContextCountBeforeCleanup = activeWindowContexts.size();

            removeEldestWindowContext(editableWindowContextManager, activeWindowContexts);

            if(activeWindowContextCountBeforeCleanup > editableWindowContextManager.getWindowContexts().size())
            {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        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);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    //don't move it to an observer due to an unpredictable invocation order
    public static void postRenderCleanup(FacesContext facesContext)
    {
        BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();

        EditableWindowContextManager windowContextManager =
                CodiUtils.getContextualReferenceByClass(beanManager, EditableWindowContextManager.class);

        WindowContextConfig windowContextConfig =
                CodiUtils.getContextualReferenceByClass(beanManager, WindowContextConfig.class);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        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);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        try
        {
            BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();

            EditableWindowContextManager windowContextManager =
                    CodiUtils.getContextualReferenceByClass(beanManager, EditableWindowContextManager.class);

            WindowContextConfig windowContextConfig =
                    CodiUtils.getContextualReferenceByClass(beanManager, WindowContextConfig.class);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        WindowContextManager windowContextManager = ConversationUtils.getWindowContextManager();

        if(windowContextManager instanceof EditableWindowContextManager)
        {
            EditableWindowContextManager editableWindowContextManager =
                    (EditableWindowContextManager)windowContextManager;

            Collection<EditableWindowContext> activeWindowContexts = editableWindowContextManager.getWindowContexts();

            int activeWindowContextCountBeforeCleanup = activeWindowContexts.size();

            removeEldestWindowContext(editableWindowContextManager, activeWindowContexts);

            if(activeWindowContextCountBeforeCleanup > editableWindowContextManager.getWindowContexts().size())
            {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        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);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        try
        {
            BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();

            EditableWindowContextManager windowContextManager =
                    CodiUtils.getContextualReferenceByClass(beanManager, EditableWindowContextManager.class);

            WindowContextConfig windowContextConfig =
                    CodiUtils.getContextualReferenceByClass(beanManager, WindowContextConfig.class);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableWindowContextManager

    {
        WindowContextManager windowContextManager = ConversationUtils.getWindowContextManager();

        if(windowContextManager instanceof EditableWindowContextManager)
        {
            EditableWindowContextManager editableWindowContextManager =
                    (EditableWindowContextManager)windowContextManager;

            Collection<EditableWindowContext> activeWindowContexts = editableWindowContextManager.getWindowContexts();

            int activeWindowContextCountBeforeCleanup = activeWindowContexts.size();

            removeEldestWindowContext(editableWindowContextManager, activeWindowContexts);

            if(activeWindowContextCountBeforeCleanup > editableWindowContextManager.getWindowContexts().size())
            {
                return true;
            }
        }
        return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.