Package com.liferay.faces.bridge.scope

Examples of com.liferay.faces.bridge.scope.BridgeRequestScopeManagerFactory


        }
      }

      // Discover Factories
      BeanManagerFactory beanManagerFactory = null;
      BridgeRequestScopeManagerFactory bridgeRequestScopeManagerFactory = null;

      try {
        beanManagerFactory = (BeanManagerFactory) FactoryExtensionFinder.getFactory(BeanManagerFactory.class);
        bridgeRequestScopeManagerFactory = (BridgeRequestScopeManagerFactory) FactoryExtensionFinder.getFactory(
            BridgeRequestScopeManagerFactory.class);
      }
      catch (BridgeException e) {
        logger.debug("Unable to discover factories because portlet never received a RenderRequest");
      }

      if ((beanManagerFactory != null) && (bridgeRequestScopeManagerFactory != null)) {

        // Cleanup instances of BridgeRequestScope that are associated with the expiring session.
        HttpSession httpSession = httpSessionEvent.getSession();
        BridgeRequestScopeManager bridgeRequestScopeManager =
          bridgeRequestScopeManagerFactory.getBridgeRequestScopeManager();
        bridgeRequestScopeManager.removeBridgeRequestScopesBySession(httpSession);

        // For each session attribute:
        String appConfigAttrName = ApplicationConfig.class.getName();
        ServletContext servletContext = httpSession.getServletContext();
View Full Code Here


    initialized = false;

    // FACES-1450: Surround with try/catch block in order to prevent hot re-deploys from failing in Liferay Portal.
    try {

      BridgeRequestScopeManagerFactory bridgeRequestScopeManagerFactory = (BridgeRequestScopeManagerFactory)
        FactoryExtensionFinder.getFactory(BridgeRequestScopeManagerFactory.class);
      BridgeRequestScopeManager bridgeRequestScopeManager =
        bridgeRequestScopeManagerFactory.getBridgeRequestScopeManager();
      bridgeRequestScopeManager.removeBridgeRequestScopesByPortlet(portletConfig);
    }
    catch (Throwable t) {
      logger.warn(t.getMessage());
    }
View Full Code Here

TOP

Related Classes of com.liferay.faces.bridge.scope.BridgeRequestScopeManagerFactory

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.