List of usage examples for javax.servlet ServletContextAttributeEvent getValue
public Object getValue()
From source file:org.apache.struts.faces.taglib.LifecycleListener.java
/** * <p>Process an "attribute replaced" event.</p> * * @param event The <code>ServletContextAttributeEvent</code> * that has occurred//from w ww .j a va 2 s. c om */ public void attributeReplaced(ServletContextAttributeEvent event) { String name = event.getName(); log.info("attributeReplaced(" + name + ")"); if (Globals.ACTION_SERVLET_KEY.equals(name)) { servlet = (ActionServlet) event.getValue(); } }
From source file:org.openanzo.combus.bayeux.BayeuxJMSBridge.java
public void attributeAdded(ServletContextAttributeEvent scab) { Properties properties = (Properties) scab.getServletContext().getAttribute("initParams"); if (scab.getName().equals(Bayeux.ATTRIBUTE)) { Bayeux bayeux = (Bayeux) scab.getValue(); initialize(bayeux, properties);//from w ww.j a v a 2s .co m } }