List of usage examples for javax.servlet ServletContextAttributeEvent getName
public String getName()
From source file:com.manydesigns.portofino.servlets.PortofinoListener.java
@Override public void attributeReplaced(ServletContextAttributeEvent servletContextAttributeEvent) { logger.debug("Servlet context attribute replaced: " + servletContextAttributeEvent.getName() + " = " + servletContextAttributeEvent.getValue()); }
From source file:com.medlog.webservice.lifecycle.NewServletListener.java
private void logit(ServletContextAttributeEvent e, String event) { try {//from w w w. j a va2 s . c o m System.out.println(StrUtl.toS(e.getSource().getClass().getName(), "[source]"));//, e.getName(), StrUtl.toS( e.getValue().toString(), "[val]" ), event ); System.out.print(event); System.out.print(" -:- "); System.out.print(StrUtl.toS(e.getName(), "[name]")); System.out.print(" = "); System.out.println(StrUtl.toS(e.getValue().toString(), "[val]")); } catch (Exception ee) { ee.printStackTrace(); } }
From source file:org.apache.struts.faces.taglib.LifecycleListener.java
/** * <p>Process an "attribute added" event.</p> * * @param event The <code>ServletContextAttributeEvent</code> * that has occurred// w w w. ja v a 2 s.co m */ public void attributeAdded(ServletContextAttributeEvent event) { String name = event.getName(); log.info("attributeAdded(" + name + "," + event.getValue() + ")"); if (name.equals(Globals.ACTION_SERVLET_KEY)) { servlet = (ActionServlet) event.getValue(); } else if (name.startsWith(Globals.MODULE_KEY)) { createProcessor(servlet, (ModuleConfig) event.getValue()); } }
From source file:org.apache.struts.faces.taglib.LifecycleListener.java
/** * <p>Process an "attribute removed" event.</p> * * @param event The <code>ServletContextAttributeEvent</code> * that has occurred/*w ww . jav a 2 s. c om*/ */ public void attributeRemoved(ServletContextAttributeEvent event) { String name = event.getName(); log.info("attributeRemoved(" + name + ")"); if (name.equals(Globals.ACTION_SERVLET_KEY)) { servlet = null; } }
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/*w w w . java2 s . co m*/ */ 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 w w .ja va 2 s .c om*/ } }