C# Class Castle.MicroKernel.ModelBuilder.Inspectors.LifestyleModelInspector

Inheritance: IContributeComponentModelConstruction
Afficher le fichier Open project: castleproject/Windsor

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

LifestyleModelInspector() public méthode

public LifestyleModelInspector ( IConversionManager converter ) : System
converter IConversionManager
Résultat System

ProcessModel() public méthode

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
Résultat void

ReadLifestyleFromConfiguration() protected méthode

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
Résultat bool

ReadLifestyleFromType() protected méthode

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

ValidateTypeFromAttribute() protected méthode

protected ValidateTypeFromAttribute ( Type typeFromAttribute, Type expectedInterface, string attribute ) : void
typeFromAttribute System.Type
expectedInterface System.Type
attribute string
Résultat void