Class AppListener

java.lang.Object
systextil.log4j.AppListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class AppListener extends Object implements javax.servlet.ServletContextListener
Restaura as saídas padrão quando a aplicação está sendo removida.
  • Constructor Details

    • AppListener

      public AppListener()
      Constrói este listener junto com a aplicação.
  • Method Details

    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent sce)
      Ao inicializar a aplicação, não faz nada.
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
      Parameters:
      sce - o contexto
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent sce)
      Ao finalizar a aplicação, restaura as saídas padrão.
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
      Parameters:
      sce - o contexto