tbf/TBF/BenchControl/Output/DB/SensusOracle/Factory.cs

26 lines
841 B
C#

///
/// Copyright (c) 2015-2020 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Output.DB.SensusOracle
{
public class Factory : IComponentFactory
{
public string ClassName { get { return "Sensus-Oracle-Database"; } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new Database(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Database(cfg); }
public IComponentCfg DefaultConfig() { return new DatabaseCfg("SensusOracle", this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(DatabaseCfg.Serializer, component, this);
}
}
}