Class ModelIdResolver

java.lang.Object
com.yahoo.vespa.model.container.xml.ModelIdResolver

public class ModelIdResolver extends Object
Replaces model id references in configs by their url.
Author:
lesters, bratseth
  • Constructor Details

    • ModelIdResolver

      public ModelIdResolver()
  • Method Details

    • resolveModelIds

      public static void resolveModelIds(Element component, boolean hosted)
      Finds any config values of type 'model' below the given config element and supplies the url attribute of them if a model id is specified and hosted is true (regardless of whether an url is already specified).
      Parameters:
      component - the XML element of any component
    • resolveToModelReference

      public static com.yahoo.config.ModelReference resolveToModelReference(Element elem, DeployState state)
    • resolveToModelReference

      public static com.yahoo.config.ModelReference resolveToModelReference(String paramName, Optional<String> id, Optional<String> url, Optional<String> path, DeployState state)