public void contextInitialized(ServletContextEvent event){
  if (this.servletContext == null) {
    this.servletContext=event.getServletContext();
  }
}

public void contextInitialized ( ServletContextEvent event ) { if ( this . servletContext == null ) { this . servletContext = event . getServletContext ( ) ; } }
notification that the web application initialization process is starting . all servletcontextlisteners are notified of context initialization before any filter or servlet in the web application is initialized .
