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
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
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>