com.liferay.faces.bridge.servlet
Class BridgeRequestAttributeListener

java.lang.Object
  extended by com.liferay.faces.bridge.servlet.BridgeRequestAttributeListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletRequestAttributeListener

public class BridgeRequestAttributeListener
extends Object
implements javax.servlet.ServletRequestAttributeListener

This class is designed to support the BridgeRequestScopeAttributeAdded annotation. It has to be specified as a listener in the WEB-INF/web.xml descriptor like this:

    <listener>
        <listener-class>com.liferay.faces.bridge.context.map.BridgeRequestAttributeListener</listener-class>
    </listener>
 

Author:
Neil Griffin
See Also:
http://issues.liferay.com/browse/FACES-146

Constructor Summary
BridgeRequestAttributeListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
          This method is called after an attribute is added to the ServletRequest.
 void attributeRemoved(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
          This method is called after an attribute is removed from the ServletRequest.
 void attributeReplaced(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
          This method is called after an attribute is replaced in the ServletRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeRequestAttributeListener

public BridgeRequestAttributeListener()
Method Detail

attributeAdded

public void attributeAdded(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
This method is called after an attribute is added to the ServletRequest. Note that this should only get called for remote WSRP portlets. For more info, see: http://issues.liferay.com/browse/FACES-146

Specified by:
attributeAdded in interface javax.servlet.ServletRequestAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
This method is called after an attribute is removed from the ServletRequest. One might expect that this is a good time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the Bridge's RequestAttributeMap.remove(Object) method. Note that this should only get called for remote WSRP portlets. For more info, see: http://issues.liferay.com/browse/FACES-146

Specified by:
attributeRemoved in interface javax.servlet.ServletRequestAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.ServletRequestAttributeEvent servletRequestAttributeEvent)
This method is called after an attribute is replaced in the ServletRequest. One might expect that this is a good time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the Bridge's RequestAttributeMap.remove(Object) method. Note that this should only get called for remote WSRP portlets. For more info, see: http://issues.liferay.com/browse/FACES-146

Specified by:
attributeReplaced in interface javax.servlet.ServletRequestAttributeListener


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