org.molgenis.data.index.meta.IndexPackage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-index Show documentation
Show all versions of molgenis-data-index Show documentation
Data layer indexing framework.
package org.molgenis.data.index.meta;
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;
import static java.util.Objects.requireNonNull;
import static org.molgenis.data.system.model.RootSystemPackage.PACKAGE_SYSTEM;
@Component
public class IndexPackage extends SystemPackage
{
public static final String SIMPLE_NAME = "idx";
public static final String PACKAGE_INDEX = PACKAGE_SYSTEM + PACKAGE_SEPARATOR + SIMPLE_NAME;
private final RootSystemPackage rootSystemPackage;
public IndexPackage(PackageMetadata packageMetadata, RootSystemPackage rootSystemPackage)
{
super(PACKAGE_INDEX, packageMetadata);
this.rootSystemPackage = requireNonNull(rootSystemPackage);
}
@Override
protected void init()
{
setLabel("Index");
setParent(rootSystemPackage);
}
}