C# 클래스 Castle.MicroKernel.ModelBuilder.Inspectors.LifestyleModelInspector

상속: IContributeComponentModelConstruction
파일 보기 프로젝트 열기: castleproject/Windsor

공개 메소드들

메소드 설명
LifestyleModelInspector ( IConversionManager converter ) : System
ProcessModel ( IKernel kernel, ComponentModel model ) : void

Searches for the lifestyle in the configuration and, if unsuccessful look for the lifestyle attribute in the implementation type.

보호된 메소드들

메소드 설명
ReadLifestyleFromConfiguration ( ComponentModel model ) : bool

Reads the attribute "lifestyle" associated with the component configuration and tries to convert to LifestyleType enum type.

ReadLifestyleFromType ( ComponentModel model ) : void

Check if the type expose one of the lifestyle attributes defined in Castle.Model namespace.

ValidateTypeFromAttribute ( Type typeFromAttribute, Type expectedInterface, string attribute ) : void

비공개 메소드들

메소드 설명
ExtractBinder ( Type scopeRootBinderType, string name ) : IHandler>.Func
ExtractPoolConfig ( ComponentModel model ) : void
GetMandatoryTypeFromAttribute ( ComponentModel model, string attribute, LifestyleType lifestyleType ) : Type
GetTypeFromAttribute ( ComponentModel model, string attribute ) : Type
IsBindMethod ( MemberInfo methodMember, object _ ) : bool

메소드 상세

LifestyleModelInspector() 공개 메소드

public LifestyleModelInspector ( IConversionManager converter ) : System
converter IConversionManager
리턴 System

ProcessModel() 공개 메소드

Searches for the lifestyle in the configuration and, if unsuccessful look for the lifestyle attribute in the implementation type.
public ProcessModel ( IKernel kernel, ComponentModel model ) : void
kernel IKernel
model Castle.Core.ComponentModel
리턴 void

ReadLifestyleFromConfiguration() 보호된 메소드

Reads the attribute "lifestyle" associated with the component configuration and tries to convert to LifestyleType enum type.
protected ReadLifestyleFromConfiguration ( ComponentModel model ) : bool
model Castle.Core.ComponentModel
리턴 bool

ReadLifestyleFromType() 보호된 메소드

Check if the type expose one of the lifestyle attributes defined in Castle.Model namespace.
protected ReadLifestyleFromType ( ComponentModel model ) : void
model Castle.Core.ComponentModel
리턴 void

ValidateTypeFromAttribute() 보호된 메소드

protected ValidateTypeFromAttribute ( Type typeFromAttribute, Type expectedInterface, string attribute ) : void
typeFromAttribute System.Type
expectedInterface System.Type
attribute string
리턴 void