com.liferay.faces.bridge.scope
Class BridgeRequestScopeManagerImpl

java.lang.Object
  extended by com.liferay.faces.bridge.scope.BridgeRequestScopeManagerImpl
All Implemented Interfaces:
BridgeRequestScopeManager

public class BridgeRequestScopeManagerImpl
extends Object
implements BridgeRequestScopeManager

Author:
Neil Griffin

Constructor Summary
BridgeRequestScopeManagerImpl()
           
 
Method Summary
 void removeBridgeRequestScopesByPortlet(javax.portlet.PortletConfig portletConfig)
          Removes all BridgeRequestScope instances that are associated with the specified FacesContext.
 void removeBridgeRequestScopesBySession(javax.servlet.http.HttpSession httpSession)
          This method is designed to be invoked from a HttpSessionListener like BridgeSessionListener when a session timeout/expiration occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeRequestScopeManagerImpl

public BridgeRequestScopeManagerImpl()
Method Detail

removeBridgeRequestScopesByPortlet

public void removeBridgeRequestScopesByPortlet(javax.portlet.PortletConfig portletConfig)
Description copied from interface: BridgeRequestScopeManager
Removes all BridgeRequestScope instances that are associated with the specified FacesContext. This should be called if the portlet container unloads an portlet individually.

Specified by:
removeBridgeRequestScopesByPortlet in interface BridgeRequestScopeManager
Parameters:
portletConfig - The current PortletConfig.

removeBridgeRequestScopesBySession

public void removeBridgeRequestScopesBySession(javax.servlet.http.HttpSession httpSession)
This method is designed to be invoked from a HttpSessionListener like BridgeSessionListener when a session timeout/expiration occurs. The logic in this method is a little awkward because we have to try and remove BridgeRequestScope instances from Map instances in the ServletContext rather than the PortletContext because we only have access to the Servlet-API when sessions expire.

Specified by:
removeBridgeRequestScopesBySession in interface BridgeRequestScopeManager
Parameters:
httpSession - The current HttpSession.


Copyright © 2014 Liferay, Inc.. All Rights Reserved.