C# Класс LinFu.IoC.Configuration.Loaders.ImplementsAttributeLoader

A loader class that scans a type for ImplementsAttribute attribute declarations and creates a factory for each corresponding attribute instance.
Наследование: ITypeLoader
Показать файл Открыть проект

Открытые методы

Метод Описание
CanLoad ( Type sourceType ) : bool

Determines whether or not the current sourceType can be loaded.

Load ( Type sourceType ) : IEnumerable>

Converts a given System.Type into a set of Action{IServiceContainer} instances so that the IContainer instance can be loaded with the given factories.

Приватные методы

Метод Описание
CreateFactory ( Type serviceType, Type implementingType, LifecycleType lifecycle ) : IFactory

Creates a factory instance that can create instaces of the given serviceType using the implementingType as the implementation.

Описание методов

CanLoad() публичный Метод

Determines whether or not the current sourceType can be loaded.
public CanLoad ( Type sourceType ) : bool
sourceType System.Type The source type currently being loaded.
Результат bool

Load() публичный Метод

Converts a given System.Type into a set of Action{IServiceContainer} instances so that the IContainer instance can be loaded with the given factories.
public Load ( Type sourceType ) : IEnumerable>
sourceType System.Type The input type from which one or more factories will be created.
Результат IEnumerable>