jp.sf.amateras.mirage.updater
Class SchemaUpdateListener

java.lang.Object
  extended by jp.sf.amateras.mirage.updater.SchemaUpdateListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class SchemaUpdateListener
extends Object
implements javax.servlet.ServletContextListener

This is a ServletContextLisneter to execute SchemaUpdater when the servlet context is initialized.

This listener is only available when Mirage is working standalone. Because this listener get connection configurations from jdbc.properties using SessionFactory. If you want to use Mirage with DI containers such as Spring or etc, you can't use this listener.

Author:
Naoki Takezoe

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

Constructor Detail

SchemaUpdateListener

public SchemaUpdateListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2010-2012 Project Amateras. All Rights Reserved.