Example usage for javax.servlet ServletContextAttributeEvent getSource

List of usage examples for javax.servlet ServletContextAttributeEvent getSource

Introduction

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

Prototype

public Object getSource() 

Source Link

Document

The object on which the Event initially occurred.

Usage

From source file:com.medlog.webservice.lifecycle.NewServletListener.java

private void logit(ServletContextAttributeEvent e, String event) {
    try {/*from ww  w  . ja  v a2 s .  c  om*/
        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();
    }

}