com.atlassian.jira.appconsistency.db
Class DatabaseCompatibilityEnforcer
java.lang.Object
com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcer
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class DatabaseCompatibilityEnforcer
- extends Object
- implements javax.servlet.ServletContextListener
Makes sure the database is compatible with this version of JIRA and if not,
stops access to it. It also creates a Johnson Event
to explain the problem to the user.
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Not implemented |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Runs the database check and in the case of negative result adds new
error-level Johnson event that describes the fault. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseCompatibilityEnforcer
public DatabaseCompatibilityEnforcer()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Runs the database check and in the case of negative result adds new
error-level Johnson event that describes the fault.
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
- Parameters:
servletContextEvent
- event notifying about application init
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
- Not implemented
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2002-2008 Atlassian. All Rights Reserved.