Class RegistryMetadataBaseline
java.lang.Object
org.gcube.informationsystem.resourceregistry.dbinitialization.RegistryMetadataBaseline
Computes the
RegistryMetadata the classpath defines: is-model and the domain model with
the types installed from the classpath, an empty runtime model, and no revision.
Used wherever the record is (re)computed: bootstrap and migration.
- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a baseline readingservice.yamland the classpath. -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.informationsystem.registry.RegistryMetadatacreate()Computes the record: is-model and the domain model, if any, with their classpath types, and an empty runtime model; every counter at 0.
-
Constructor Details
-
RegistryMetadataBaseline
public RegistryMetadataBaseline()Creates a baseline readingservice.yamland the classpath.
-
-
Method Details
-
create
Computes the record: is-model and the domain model, if any, with their classpath types, and an empty runtime model; every counter at 0.- Returns:
- the record
- Throws:
Exception- if more than one domain model is on the classpath, the runtime model's name is taken, or the discovery scan fails
-