All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paypal.butterfly.extensions.api.upgrade.UpgradeStep Maven / Gradle / Ivy

There is a newer version: 3.2.7
Show newest version
package com.paypal.butterfly.extensions.api.upgrade;

/**
 * A special type of upgrade template that takes an application
 * from one minor version to the next subsequent available version.
 *
 * @author facarvalho
 */
public abstract class UpgradeStep extends UpgradeTemplate {

    /**
     * Returns the version the application would be upgraded to
     *
     * @return the version the application would be upgraded to
     */
    public abstract String getNextVersion();

    /**
     * Returns the next {@link UpgradeStep}.
     * Returns null if there is no {@link UpgradeStep}
     * associated with the next version
     *
     * @return the next {@link UpgradeStep}
     */
    public abstract UpgradeStep getNextStep();

    @Override
    public void setBlank(boolean blank) {
        throw new UnsupportedOperationException("Upgrade steps cannot be blank, so this setter doesn't apply in this case");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy