/// /// Copyright (c) 2018 Sensus Slovensko a.s. /// using System.Collections.Generic; using TBF.BenchControl.Generic; namespace TBF.BenchControl.Output.FileWriters.IperlLogger { public class Factory : IComponentFactory { public string ClassName { get { return this.GetType().Namespace.Substring(17); } } public IComponent DummyComponent() { return new Writer(); } public IComponent GetComponent(IComponentCfg cfg, IList components) { return new Writer(cfg); } public IComponentCfg DefaultConfig() { return new WriterCfg(this.GetType().Namespace.Substring(24), this); } public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component) { return ComponentCfgBase.CreateFromDbEntity(WriterCfg.Serializer, component, this); } } }