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

edu.stanford.protege.webprotege.app.ApplicationPathSupplier Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.app;

import javax.annotation.Nonnull;
import javax.inject.Inject;
import java.util.function.Supplier;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 19 Mar 2017
 */
public class ApplicationPathSupplier implements Supplier {

    private final ApplicationPreferencesStore manager;

    @Inject
    public ApplicationPathSupplier(@Nonnull ApplicationPreferencesStore manager) {
        this.manager = checkNotNull(manager);
    }

    @Nonnull
    public String get() {
        return manager.getApplicationPreferences().getApplicationLocation().getPath();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy