View Javadoc
1   package com.atlassian.sal.api.upgrade;
2   
3   import com.atlassian.sal.api.message.Message;
4   
5   import java.util.List;
6   
7   /**
8    * Upgrades plugins using their defined build number. This only guarantees that upgrade tasks will be run when
9    * the plugins system is initialized. There is no guarantee that upgrade tasks will be run on plugin enablement or
10   * plugin upgrade.
11   *
12   * @since 2.0
13   */
14  public interface PluginUpgradeManager {
15      /**
16       * Finds and upgrades all plugins, that implement PluginUpgradeTask
17       *
18       * @return A list of errors
19       */
20      List<Message> upgrade();
21  }