Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## kieker.webgui.common
Class EnvironmentLoaderListener

    java.lang.Object
      kieker.webgui.common.EnvironmentLoaderListener

All Implemented Interfaces:
  EventListener, javax.servlet.ServletContextListener

    public final class EnvironmentLoaderListener

extends Object
implements javax.servlet.ServletContextListener

This is a context listener, which will be activated during the initialization of the application. It initializes some environment properties, which are necessary for the web application.
The only two environment properties, which are currently set by this listener, are the property for the web application logger and the property for the EMF cleaner thread. The first ones makes sure that later created analyses use the correct logger, whose messages can be intercepted by this application. If this environment property is not set, the log entries of the analyses cannot be shown in the corresponding control panel. The second property makes sure that later created analyses do not start a cleaner thread, which would result in further problems with the hot deployment and the GC.
As this class is used by the servlet container, it is not recommended to use or access it in any way.

Author:
  Nils Christian Ehmke

Constructor Summary
`EnvironmentLoaderListener()` Creates a new instance of this class.

Method Summary
`void` | `contextDestroyed(javax.servlet.ServletContextEvent event)`
`void` | `contextInitialized(javax.servlet.ServletContextEvent event)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### EnvironmentLoaderListener

    public EnvironmentLoaderListener()

  Creates a new instance of this class. Do not call this constructor manually. It will only be accessed by the servlet container.

Method Detail

### contextDestroyed

    public void contextDestroyed(javax.servlet.ServletContextEvent event)

  Specified by:
    `contextDestroyed` in interface `javax.servlet.ServletContextListener`

### contextInitialized

    public void contextInitialized(javax.servlet.ServletContextEvent event)

  Specified by:
    `contextInitialized` in interface `javax.servlet.ServletContextListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All rights reserved.