You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
// Author: Gockner, Simon
|
|
// Created: 2020-02-12
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved.
|
|
|
|
|
|
using GBase.DataHandling;
|
|
using GBase.DataHandling.Cache;
|
|
using GBase.Interfaces.DataHandling.Xml;
|
|
using GBase.Interfaces.DataHandling.Xml.Cache;
|
|
using GBase.Interfaces.DataHandling.Xml.Cache.Factories;
|
|
using GBase.Interfaces.DataHandling.Xml.Factories;
|
|
using LightweightIocContainer.Interfaces;
|
|
using LightweightIocContainer.Interfaces.Installers;
|
|
|
|
namespace GBase.Installer
|
|
{
|
|
/// <summary>
|
|
/// <see cref="IIocInstaller"/> for the data handling
|
|
/// </summary>
|
|
public class DataHandlingInstaller : IIocInstaller
|
|
{
|
|
/// <inheritdoc />
|
|
public void Install(IIocContainer container)
|
|
{
|
|
container.Register<IXmlDataHandler, XmlDataHandler>();
|
|
container.Register<IXmlDataReader, XmlDataReader>();
|
|
container.Register<IXmlDataWriter, XmlDataWriter>();
|
|
|
|
//cache
|
|
container.Register<IXmlDataHandlerCache, XmlDataHandlerCache>();
|
|
container.Register<IXmlDataHandlerCacheEntry, XmlDataHandlerCacheEntry>();
|
|
container.Register<IXmlDataHandlerCachePropertyEntry, XmlDataHandlerCachePropertyEntry>();
|
|
|
|
//factories
|
|
container.RegisterFactory<IXmlDataHandlerFactory>();
|
|
container.RegisterFactory<IXmlDataReaderFactory>();
|
|
container.RegisterFactory<IXmlDataWriterFactory>();
|
|
|
|
//cache factories
|
|
container.RegisterFactory<IXmlDataHandlerCacheFactory>();
|
|
container.RegisterFactory<IXmlDataHandlerCacheEntryFactory>();
|
|
container.RegisterFactory<IXmlDataHandlerCachePropertyEntryFactory>();
|
|
}
|
|
}
|
|
} |