List of usage examples for javax.servlet ServletContextAttributeEvent getValue
public Object getValue()
From source file:MyServlet.java
/** * Record the fact that a servlet context attribute was added. * * @param event The servlet context attribute event *///from w ww . j a v a 2 s .c om public void attributeAdded(ServletContextAttributeEvent event) { log("attributeAdded('" + event.getName() + "', '" + event.getValue() + "')"); }
From source file:MyServlet.java
/** * Record the fact that a servlet context attribute was removed. * * @param event The servlet context attribute event *//*from ww w . j a v a 2 s .c o m*/ public void attributeRemoved(ServletContextAttributeEvent event) { log("attributeRemoved('" + event.getName() + "', '" + event.getValue() + "')"); }
From source file:MyServlet.java
/** * Record the fact that a servlet context attribute was replaced. * * @param event The servlet context attribute event *///from w ww . j a v a2 s .c o m public void attributeReplaced(ServletContextAttributeEvent event) { log("attributeReplaced('" + event.getName() + "', '" + event.getValue() + "')"); }
From source file:io.adeptj.runtime.osgi.BridgeServletContextAttributeListener.java
@Override public void attributeAdded(ServletContextAttributeEvent event) { if (StringUtils.equals(event.getName(), ATTRIBUTE_BUNDLE_CTX)) { ServiceTrackers.getInstance().openEventDispatcherTracker((BundleContext) event.getValue()); }/*from ww w .ja va 2 s. co m*/ }
From source file:com.adeptj.runtime.osgi.BridgeServletContextAttributeListener.java
@Override public void attributeAdded(ServletContextAttributeEvent event) { if (StringUtils.equals(event.getName(), Constants.ATTRIBUTE_BUNDLE_CTX)) { ServiceTrackers.getInstance().openEventDispatcherTracker((BundleContext) event.getValue()); }/*from ww w . j av a 2 s. co m*/ }
From source file:com.manydesigns.portofino.servlets.PortofinoListener.java
@Override public void attributeAdded(ServletContextAttributeEvent servletContextAttributeEvent) { logger.debug("Servlet context attribute added: " + servletContextAttributeEvent.getName() + " = " + servletContextAttributeEvent.getValue()); }
From source file:com.manydesigns.portofino.servlets.PortofinoListener.java
@Override public void attributeRemoved(ServletContextAttributeEvent servletContextAttributeEvent) { logger.debug("Servlet context attribute removed: " + servletContextAttributeEvent.getName() + " = " + servletContextAttributeEvent.getValue()); }
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 ww . ja 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/*from w w w. j a v a 2 s .c o 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()); } }