/** * <p>Respond to a request scope attribute being removed. * If the old value was an {@link AbstractRequestBean}, * call its <code>destroy()</code> method.</p> * * @param event Event to be processed */ public void attributeRemoved(ServletRequestAttributeEvent event) { Object value = event.getValue(); if (value != null) { fireRequestDestroy(value); } }
public void attributeReplaced(ServletRequestAttributeEvent srae) { // use this phase attribute as an indicator of whether // we are actively working on a request PortletPhase phase = (PortletPhase) srae.getServletRequest().getAttribute(Bridge.PORTLET_LIFECYCLE_PHASE); // If in an action this means the attribute has been replaced before we have // saved the action scope -- since the managed bean has been informed we are // running in a portlet environment it should have ignored the PreDestroy. // To make up for this we call its BridgePredestroy if (phase != null && phase != PortletPhase.RENDER_PHASE) { notifyPreDestroy(srae.getValue()); // in outerclass (BridgeImpl) } }
public void attributeRemoved(ServletRequestAttributeEvent srae) { // use this phase attribute as an indicator of whether // we are actively working on a request PortletPhase phase = (PortletPhase) srae.getServletRequest().getAttribute(Bridge.PORTLET_LIFECYCLE_PHASE); // If not in a render this means the attribute has been removed before we have // saved the request scope -- since the managed bean has been informed we are // running in a portlet environment it should have ignored the PreDestroy. // To make up for this we call its BridgePredestroy if (phase != null && phase != PortletPhase.RENDER_PHASE) { notifyPreDestroy(srae.getValue()); // in outerclass (BridgeImpl) } }
@Override public void attributeRemoved(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
/** * Notification that an existing attribute has been removed from the * servlet request. Called after the attribute is removed. * @param event the notification event */ public void attributeRemoved(ServletRequestAttributeEvent event) { handleAttributeEvent(event.getName(), event.getValue(), ELUtils.Scope.REQUEST); }
/** * 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 {@link 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 */ public void attributeRemoved(ServletRequestAttributeEvent servletRequestAttributeEvent) { String attributeName = servletRequestAttributeEvent.getName(); Object attributeValue = servletRequestAttributeEvent.getValue(); logger.trace("Attribute removed name=[{0}] value=[{1}]", attributeName, attributeValue); }
/** * Notification that an existing attribute has been removed from the servlet request. Called * after the attribute is removed. * * @param event the notification event */ public void attributeRemoved(ServletRequestAttributeEvent event) { handleAttributeEvent(event.getName(), event.getValue(), ELUtils.Scope.REQUEST); }
/** * Notification that an existing attribute has been removed from the servlet request. Called * after the attribute is removed. * * @param event the notification event */ public void attributeRemoved(ServletRequestAttributeEvent event) { handleAttributeEvent(event.getName(), event.getValue(), ELUtils.Scope.REQUEST); }
/** * 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 {@link 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 */ public void attributeReplaced(ServletRequestAttributeEvent servletRequestAttributeEvent) { String attributeName = servletRequestAttributeEvent.getName(); Object attributeValue = servletRequestAttributeEvent.getValue(); logger.trace("Attribute replaced name=[{0}] value=[{1}]", attributeName, attributeValue); }
public void attributeReplaced(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
public void attributeRemoved(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
public void attributeReplaced(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
/** * 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 {@link 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 */ public void attributeRemoved(ServletRequestAttributeEvent servletRequestAttributeEvent) { String attributeName = servletRequestAttributeEvent.getName(); Object attributeValue = servletRequestAttributeEvent.getValue(); logger.trace("Attribute removed name=[{0}] value=[{1}]", attributeName, attributeValue); }
/** * 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 {@link 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 */ public void attributeReplaced(ServletRequestAttributeEvent servletRequestAttributeEvent) { String attributeName = servletRequestAttributeEvent.getName(); Object attributeValue = servletRequestAttributeEvent.getValue(); logger.trace("Attribute replaced name=[{0}] value=[{1}]", attributeName, attributeValue); }
/** * Notification that an existing attribute has been removed from the servlet request. Called * after the attribute is removed. * * @param event the notification event */ public void attributeRemoved(ServletRequestAttributeEvent event) { handleAttributeEvent(event.getName(), event.getValue(), ELUtils.Scope.REQUEST); }
@Override public void attributeReplaced(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
/** * Notification that an existing attribute has been removed from the * servlet request. Called after the attribute is removed. * @param event the notification event */ public void attributeRemoved(ServletRequestAttributeEvent event) { handleAttributeEvent(event.getName(), event.getValue(), ELUtils.Scope.REQUEST); }
public void attributeRemoved(ServletRequestAttributeEvent event) { if (_destroyer != null) { _destroyer.destroy(event.getName(), event.getValue()); } }
public void attributeReplaced(ServletRequestAttributeEvent evt) { final String name = evt.getName(); if (!shallIgnore(name)) { final Execution exec = Executions.getCurrent(); if (exec instanceof ExecutionImpl && evt.getServletRequest().equals(exec.getNativeRequest())) ((ExecutionImpl) exec).getScopeListeners().notifyReplaced(name, evt.getValue()); } } }
public void attributeAdded(ServletRequestAttributeEvent evt) { final String name = evt.getName(); if (!shallIgnore(name)) { final Execution exec = Executions.getCurrent(); if (exec instanceof ExecutionImpl && evt.getServletRequest().equals(exec.getNativeRequest())) ((ExecutionImpl) exec).getScopeListeners().notifyAdded(name, evt.getValue()); } }