Class ModelIdResolver
java.lang.Object
com.yahoo.vespa.model.container.xml.ModelIdResolver
Replaces model id references in configs by their url.
- Author:
- lesters, bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).static com.yahoo.config.ModelReference
resolveToModelReference
(String paramName, Optional<String> id, Optional<String> url, Optional<String> path, DeployState state)
-
Constructor Details
-
ModelIdResolver
public ModelIdResolver()
-
-
Method Details
-
resolveModelIds
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
-