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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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