C# Class Bari.Core.Model.Loader.LocalYamlModelLoader

Model loader implementation which reads a YAML file from the local file system
Inheritance: YamlModelLoaderBase, IModelLoader
Show file Open project: vigoo/bari

Public Methods

Method Description
Load ( string source ) : Suite

Loads a suite model from the given source

It is guaranteed that this method will only be called if IModelLoader.Supports return true for the same source.

LocalYamlModelLoader ( ISuiteFactory suiteFactory, IEnumerable parametersLoaders, IUserOutput output, IPluginLoader pluginLoader, IEnvironmentVariableContext environmentVariableContext, ISuiteValidator suiteValidator ) : System.Collections.Generic

Creates the model loader

Supports ( string source ) : bool

Returns true if the loader can load suite model from the given source

Method Details

Load() public method

Loads a suite model from the given source

It is guaranteed that this method will only be called if IModelLoader.Supports return true for the same source.

public Load ( string source ) : Suite
source string Source, can mean anything (file names, urls, markup, etc.)
return Suite

LocalYamlModelLoader() public method

Creates the model loader
public LocalYamlModelLoader ( ISuiteFactory suiteFactory, IEnumerable parametersLoaders, IUserOutput output, IPluginLoader pluginLoader, IEnvironmentVariableContext environmentVariableContext, ISuiteValidator suiteValidator ) : System.Collections.Generic
suiteFactory ISuiteFactory Factory interface to create new suite instances
parametersLoaders IEnumerable Parameter loader implementations
output IUserOutput Output interface to issue warnings
pluginLoader IPluginLoader Plugin loader interface
environmentVariableContext IEnvironmentVariableContext Environment variable context
suiteValidator ISuiteValidator Suite validator interface
return System.Collections.Generic

Supports() public method

Returns true if the loader can load suite model from the given source
public Supports ( string source ) : bool
source string Source, can mean anything (file names, urls, markup, etc.)
return bool