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

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

Méthodes publiques

Méthode Description
ComponentActivatorInspector ( IConversionManager converter ) : System
ProcessModel ( IKernel kernel, ComponentModel model ) : void

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

Méthodes protégées

Méthode Description
ReadComponentActivatorFromConfiguration ( ComponentModel model ) : bool

Reads the attribute "componentActivatorType" associated with the component configuration and verifies it implements the IComponentActivator interface.

ReadComponentActivatorFromType ( ComponentModel model ) : void

Check if the type expose one of the component activator attributes defined in Castle.Core namespace.

ValidateComponentActivator ( Type customComponentActivator ) : void

Validates that the provide type implements IComponentActivator

Method Details

ComponentActivatorInspector() public méthode

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

ProcessModel() public méthode

Searches for the component activator in the configuration and, if unsuccessful look for the component activator attribute in the implementation type.
public ProcessModel ( IKernel kernel, ComponentModel model ) : void
kernel IKernel The kernel instance
model Castle.Core.ComponentModel The model instance
Résultat void

ReadComponentActivatorFromConfiguration() protected méthode

Reads the attribute "componentActivatorType" associated with the component configuration and verifies it implements the IComponentActivator interface.
/// If the type does not implement the proper interface ///
protected ReadComponentActivatorFromConfiguration ( ComponentModel model ) : bool
model Castle.Core.ComponentModel
Résultat bool

ReadComponentActivatorFromType() protected méthode

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

ValidateComponentActivator() protected méthode

Validates that the provide type implements IComponentActivator
protected ValidateComponentActivator ( Type customComponentActivator ) : void
customComponentActivator System.Type The custom component activator.
Résultat void