Module cloud.piranha.extension.herring


module cloud.piranha.extension.herring

This module delivers the integration of Manorrock Herring into Piranha.

It includes the following:

  • A WebApplicationExtension
  • A ServletContextListener
  • A ServletRequestListener

The WebApplicationExtension

The extension is responsible for setting up the proper Context instance so it can be made available during webapplication initialization and subsequently during request processing.

The ServletContextListener

This listener is responsible for the corner case of removing the Context set by the WebApplicationExtension and it signals the end of initialization.

The ServletRequestListener

This listener is responsible for making the correct Context instance available on the current thread just before the request gets serviced and to remove the Context instance from the current thread at the end of the request.

Author:
Manfred Riem ([email protected])