InstallerFactory
Helper class used by FromAssembly to filter/order and instantiate IWindsorInstaller implementations
using Castle.Core.Internal;
using Castle.MicroKernel.Registration;
using System;
using System.Collections.Generic;
namespace Castle.Windsor.Installer
{
public class InstallerFactory
{
public virtual IWindsorInstaller CreateInstance(Type installerType)
{
return installerType.CreateInstance<IWindsorInstaller>(Array.Empty<object>());
}
public virtual IEnumerable<Type> Select(IEnumerable<Type> installerTypes)
{
return installerTypes;
}
}
}