com.liferay.faces.bridge.servlet
Class BridgeSessionListener

java.lang.Object
  extended by com.liferay.faces.bridge.servlet.BridgeSessionListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener

public class BridgeSessionListener
extends Object
implements javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener

This class provides the ability to cleanup session-scoped and view-scoped managed-beans upon session expiration.

Author:
Neil Griffin

Constructor Summary
BridgeSessionListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
          This method provides the ability to discover the Mojarra InjectionProvider at startup.
static MojarraInjectionProvider getMojarraInjectionProvider()
          Returns the Mojarra InjectionProvider instance that was discovered during startup.
static String getServletContextPath()
          Returns the value of ServletContext.getContextPath() that was discovered during startup.
 void sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
           
static void setMojarraInjectionProvider(MojarraInjectionProvider injectionProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeSessionListener

public BridgeSessionListener()
Method Detail

getMojarraInjectionProvider

public static MojarraInjectionProvider getMojarraInjectionProvider()
Returns the Mojarra InjectionProvider instance that was discovered during startup.


setMojarraInjectionProvider

public static void setMojarraInjectionProvider(MojarraInjectionProvider injectionProvider)

getServletContextPath

public static String getServletContextPath()
Returns the value of ServletContext.getContextPath() that was discovered during startup.


contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
This method provides the ability to discover the Mojarra InjectionProvider at startup.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener


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