
net.java.trueupdate.manager.spec.UpdateContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trueupdate-manager-spec Show documentation
Show all versions of trueupdate-manager-spec Show documentation
Specifies an API for update managers.
The newest version!
/*
* Copyright (C) 2013 Schlichtherle IT Services & Stimulus Software.
* All rights reserved. Use is subject to license terms.
*/
package net.java.trueupdate.manager.spec;
import java.io.File;
import net.java.trueupdate.manager.spec.cmd.Command;
/**
* An update context is provided by an {@link UpdateManager} to an
* {@link UpdateInstaller} while {@linkplain UpdateInstaller#install installing}
* an update.
*
* Implementations must be thread-safe.
*
* @author Christian Schlichtherle
*/
public interface UpdateContext {
/** Returns the current location of the client application. */
String currentLocation();
/** Returns the update location of the client application. */
String updateLocation();
/**
* Returns the delta ZIP file for patching the client application's
* artifact file.
* The caller must not modify or delete this file.
*/
File deltaZip();
/** Decorates the given command depending on the given identifier. */
Command decorate(Command cmd, CommandId id);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy