com.taggercat.template
Class ContextListener

java.lang.Object
  extended by com.taggercat.template.ContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public final class ContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

This is a context listener to initialize Hibernate, as well as our meta data class. This context listener ( or a similar one ) must be included in your applications deployment descriptor. The Hibernate Session Factory is placed in the application scope as: Constants.TC_HBN8_SESSION_FACTORY The Runtime metadata is placed in the application scope as: Constants.TC_HBN8_METADATA_READER

 

Constructor Summary
ContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextListener

public ContextListener()
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