Expose some variables to Updater subclass

This commit is contained in:
Minecon724 2024-10-27 12:42:12 +01:00
parent 108265dc38
commit d582f30e66
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -1,9 +1,8 @@
package eu.m724.jarupdater; package eu.m724.jarupdater.updater;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.NoSuchFileException; import java.nio.file.NoSuchFileException;
import java.security.SignatureException;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException; import java.util.concurrent.CompletionException;
@ -14,11 +13,11 @@ import eu.m724.jarupdater.live.MetadataFacade;
import eu.m724.jarupdater.object.Version; import eu.m724.jarupdater.object.Version;
public class Updater { public class Updater {
private Environment environment; protected Environment environment;
private MetadataFacade metadataProvider; protected MetadataFacade metadataProvider;
private Downloader downloader; protected Downloader downloader;
private CompletableFuture<File> downloaded; protected CompletableFuture<File> downloaded;
public Updater(Environment environment, MetadataFacade metadataProvider, Downloader downloader) { public Updater(Environment environment, MetadataFacade metadataProvider, Downloader downloader) {
this.environment = environment; this.environment = environment;