@Override public void attributeRemoved(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); }
/** * 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); }
/** * 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()); } }
protected void doPreDestroy(ServletRequestAttributeEvent event, String scope) { doPreDestroy(event.getValue(), event.getName(), scope); }
/** * Notification that an attribute was replaced on the servlet request. Called after the * attribute is replaced. * * @param event the notification event */ public void attributeReplaced(ServletRequestAttributeEvent event) { String attrName = event.getName(); Object newValue = event.getServletRequest().getAttribute(attrName); // perhaps a bit paranoid, but since the javadocs are a bit vague, // only handle the event if oldValue and newValue are not the // exact same object // noinspection ObjectEquality if (event.getValue() != newValue) { handleAttributeEvent(attrName, event.getValue(), ELUtils.Scope.REQUEST); } }
public void attributeRemoved(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().notifyRemoved(name); } }
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()); } }