C# Класс Castle.MicroKernel.ModelBuilder.Inspectors.ComponentActivatorInspector

Наследование: IContributeComponentModelConstruction
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Описание методов

ComponentActivatorInspector() публичный Метод

public ComponentActivatorInspector ( IConversionManager converter ) : System
converter IConversionManager
Результат System

ProcessModel() публичный Метод

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
Результат void

ReadComponentActivatorFromConfiguration() защищенный Метод

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
Результат bool

ReadComponentActivatorFromType() защищенный Метод

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
Результат void

ValidateComponentActivator() защищенный Метод

Validates that the provide type implements IComponentActivator
protected ValidateComponentActivator ( Type customComponentActivator ) : void
customComponentActivator System.Type The custom component activator.
Результат void