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

org.molgenis.util.AppDataRootProvider Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.util;

import java.nio.file.Path;

/** Contains the application data root path, typically ~/.molgenis/. */
public class AppDataRootProvider {
  private static Path appDataRoot;

  private AppDataRootProvider() {}

  /** @return application data root path */
  public static Path getAppDataRoot() {
    if (appDataRoot == null) {
      throw new IllegalStateException("Missing required application data root");
    }
    return appDataRoot;
  }

  public static void setAppDataRoot(Path appDataRoot) {
    AppDataRootProvider.appDataRoot = appDataRoot;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy