org.eaglei.repository.servlet
Class RepositoryContextListener

java.lang.Object
  extended by org.eaglei.repository.servlet.RepositoryContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class RepositoryContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Manage application-wide state by responding to Web Application lifecycle events. Keep one live Sesame repository object in the Servlet Context. It *must* be closed when container shuts down. Important configuration variables: - Sesame repository object (not the connection, it makes connections) - Default namespace - Title (in configuration)

Version:
$Id: $
Author:
Larry Stone

Constructor Summary
RepositoryContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
           Web app destruction hook from servlet container.
 void contextInitialized(javax.servlet.ServletContextEvent sce)
           Web app initialization hook from servlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryContextListener

public RepositoryContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Web app initialization hook from servlet container.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Web app destruction hook from servlet container.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2009-2010 Eagle-I. All Rights Reserved.