Example usage for javax.servlet ServletContextAttributeEvent getValue

List of usage examples for javax.servlet ServletContextAttributeEvent getValue

Introduction

In this page you can find the example usage for javax.servlet ServletContextAttributeEvent getValue.

Prototype

public Object getValue() 

Source Link

Document

Gets the value of the ServletContext attribute that changed.

Usage

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
    }
}