C# 클래스 LinFu.IoC.Configuration.FactoryAttributeLoader

A class that injects custom IFactory and IFactory{T} instances into an IServiceContainer instance.
상속: ITypeLoader
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
CanLoad ( Type sourceType ) : bool

Determines whether or not the current sourceType can be loaded.

Load ( Type sourceType ) : IEnumerable>

Loads an IFactory and IFactory{T} instance into a IServiceContainer instance using the given sourceType.

비공개 메소드들

메소드 설명
GetFactory ( Type currentServiceType, IFactory>.Func getStronglyTypedFactory, ICollection implementedInterfaces ) : IFactory

Instantiates the given factory using the factory functor.

GetResults ( Type sourceType, IEnumerable attributeList, object>.Func getFactoryInstance ) : IEnumerable>

Instantiates the IFactory instances associated with the sourceType and adds those factories to the target container upon initialization.

메소드 상세

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() 공개 메소드

Loads an IFactory and IFactory{T} instance into a IServiceContainer instance using the given sourceType.
public Load ( Type sourceType ) : IEnumerable>
sourceType System.Type The input type from which one or more factories will be created.
리턴 IEnumerable>