com.atlassian.bamboo.upgrade
Class UpgradeLauncher

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.UpgradeLauncher
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

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

Upgrade launcher checks if the instance requires an upgrade or not. YT


Constructor Summary
UpgradeLauncher()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
           
static void upgradeAndStartBamboo(javax.servlet.ServletContext servletContext, boolean isPartOfSetup)
          Updates the database, upgrades and starts Bamboo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeLauncher

public UpgradeLauncher()
Method Detail

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

upgradeAndStartBamboo

public static void upgradeAndStartBamboo(javax.servlet.ServletContext servletContext,
                                         boolean isPartOfSetup)
Updates the database, upgrades and starts Bamboo.

Parameters:
servletContext -
isPartOfSetup - - Will only run upgrade tasks that's relevant for the setup process


Copyright © 2012 Atlassian. All Rights Reserved.