liquibase.integration.servlet
Class LiquibaseServletListener
java.lang.Object
liquibase.integration.servlet.LiquibaseServletListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class LiquibaseServletListener
- extends Object
- implements javax.servlet.ServletContextListener
Servlet listener than can be added to web.xml to allow Liquibase to run on every application server startup.
Using this listener allows users to know that they always have the most up to date database, although it will
slow down application server startup slightly.
See the Liquibase documentation for
more information.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiquibaseServletListener
public LiquibaseServletListener()
getChangeLogFile
public String getChangeLogFile()
setContexts
public void setContexts(String ctxt)
getContexts
public String getContexts()
setChangeLogFile
public void setChangeLogFile(String changeLogFile)
getDataSource
public String getDataSource()
setDataSource
public void setDataSource(String dataSource)
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2012 Liquibase.org. All Rights Reserved.