Package com.yahoo.vespa.model
Class VespaModelFactory
java.lang.Object
com.yahoo.vespa.model.VespaModelFactory
- All Implemented Interfaces:
com.yahoo.config.model.api.ModelFactory
Factory for creating
VespaModel
instances.- Author:
- Ulf Lilleengen
-
Constructor Summary
ModifierConstructorDescriptionVespaModelFactory
(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.model.api.ConfigModelPlugin> pluginRegistry, com.yahoo.component.provider.ComponentRegistry<Validator> additionalValidators, com.yahoo.config.provision.Zone zone) Creates a factory for Vespa models for this version of the sourceprotected
VespaModelFactory
(ConfigModelRegistry configModelRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.model.api.ModelCreateResult
createAndValidateModel
(com.yahoo.config.model.api.ModelContext modelContext, com.yahoo.config.model.api.ValidationParameters validationParameters) com.yahoo.config.model.api.Model
createModel
(com.yahoo.config.model.api.ModelContext modelContext) static VespaModelFactory
static VespaModelFactory
createTestFactory
(com.yahoo.component.Version version, ConfigModelRegistry configModelRegistry, Clock clock, com.yahoo.config.provision.Zone zone) static VespaModelFactory
createTestFactory
(ConfigModelRegistry configModelRegistry, Clock clock) com.yahoo.component.Version
version()
Returns the version this model is build for
-
Constructor Details
-
VespaModelFactory
@Inject public VespaModelFactory(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.model.api.ConfigModelPlugin> pluginRegistry, com.yahoo.component.provider.ComponentRegistry<Validator> additionalValidators, com.yahoo.config.provision.Zone zone) Creates a factory for Vespa models for this version of the source -
VespaModelFactory
-
-
Method Details
-
createTestFactory
-
createTestFactory
public static VespaModelFactory createTestFactory(ConfigModelRegistry configModelRegistry, Clock clock) -
createTestFactory
public static VespaModelFactory createTestFactory(com.yahoo.component.Version version, ConfigModelRegistry configModelRegistry, Clock clock, com.yahoo.config.provision.Zone zone) -
version
public com.yahoo.component.Version version()Returns the version this model is build for- Specified by:
version
in interfacecom.yahoo.config.model.api.ModelFactory
-
createModel
public com.yahoo.config.model.api.Model createModel(com.yahoo.config.model.api.ModelContext modelContext) - Specified by:
createModel
in interfacecom.yahoo.config.model.api.ModelFactory
-
createAndValidateModel
public com.yahoo.config.model.api.ModelCreateResult createAndValidateModel(com.yahoo.config.model.api.ModelContext modelContext, com.yahoo.config.model.api.ValidationParameters validationParameters) - Specified by:
createAndValidateModel
in interfacecom.yahoo.config.model.api.ModelFactory
-