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

org.molgenis.genomebrowser.meta.GenomeBrowserPackage Maven / Gradle / Ivy

package org.molgenis.genomebrowser.meta;

import static java.util.Objects.requireNonNull;
import static org.molgenis.data.system.model.RootSystemPackage.PACKAGE_SYSTEM;

import org.molgenis.data.meta.SystemPackage;
import org.molgenis.data.meta.model.PackageMetadata;
import org.molgenis.data.system.model.RootSystemPackage;
import org.springframework.stereotype.Component;

@Component
public class GenomeBrowserPackage extends SystemPackage {
  public static final String SIMPLE_NAME = "genomebrowser";
  public static final String PACKAGE_GENOME_BROWSER =
      PACKAGE_SYSTEM + PACKAGE_SEPARATOR + SIMPLE_NAME;

  private final RootSystemPackage rootSystemPackage;

  public GenomeBrowserPackage(
      PackageMetadata packageMetadata, RootSystemPackage rootSystemPackage) {
    super(PACKAGE_GENOME_BROWSER, packageMetadata);
    this.rootSystemPackage = requireNonNull(rootSystemPackage);
  }

  @Override
  protected void init() {
    setLabel("Genome Browser");
    setParent(rootSystemPackage);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy