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

Inheritance: IContributeComponentModelConstruction
Show file Open project: castleproject/Windsor

Public Methods

Method 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.

Protected Methods

Method 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 method

public ComponentActivatorInspector ( IConversionManager converter ) : System
converter IConversionManager
return System

ProcessModel() public method

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
return void

ReadComponentActivatorFromConfiguration() protected method

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
return bool

ReadComponentActivatorFromType() protected method

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
return void

ValidateComponentActivator() protected method

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