Package com.liferay.faces.bridge.scope

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


      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();
        ApplicationConfig applicationConfig = (ApplicationConfig) servletContext.getAttribute(
View Full Code Here


    // 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.BridgeRequestScopeManager

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.