C# Class Castle.MicroKernel.ModelBuilder.DefaultComponentModelBuilder

Inheritance: IComponentModelBuilder
Exibir arquivo Open project: castleproject/Windsor

Public Methods

Method Description
AddContributor ( IContributeComponentModelConstruction contributor ) : void

"To give or supply in common with others; give to a common fund or for a common purpose". The contributor should inspect the component, or even the configuration associated with the component, to add or change information in the model that can be used later.

BuildModel ( ComponentName name, Type services, Type classType, IDictionary extendedProperties ) : ComponentModel

Constructs a new ComponentModel by invoking the registered contributors.

BuildModel ( IComponentModelDescriptor customContributors ) : ComponentModel
DefaultComponentModelBuilder ( IKernel kernel ) : System

Initializes a new instance of the DefaultComponentModelBuilder class.

RemoveContributor ( IContributeComponentModelConstruction contributor ) : void

Removes the specified contributor

Protected Methods

Method Description
InitializeContributors ( ) : void

Initializes the default contributors.

Method Details

AddContributor() public method

"To give or supply in common with others; give to a common fund or for a common purpose". The contributor should inspect the component, or even the configuration associated with the component, to add or change information in the model that can be used later.
public AddContributor ( IContributeComponentModelConstruction contributor ) : void
contributor IContributeComponentModelConstruction
return void

BuildModel() public method

Constructs a new ComponentModel by invoking the registered contributors.
public BuildModel ( ComponentName name, Type services, Type classType, IDictionary extendedProperties ) : ComponentModel
name Castle.Core.ComponentName
services System.Type
classType System.Type
extendedProperties IDictionary
return Castle.Core.ComponentModel

BuildModel() public method

public BuildModel ( IComponentModelDescriptor customContributors ) : ComponentModel
customContributors IComponentModelDescriptor
return Castle.Core.ComponentModel

DefaultComponentModelBuilder() public method

Initializes a new instance of the DefaultComponentModelBuilder class.
public DefaultComponentModelBuilder ( IKernel kernel ) : System
kernel IKernel The kernel.
return System

InitializeContributors() protected method

Initializes the default contributors.
protected InitializeContributors ( ) : void
return void

RemoveContributor() public method

Removes the specified contributor
public RemoveContributor ( IContributeComponentModelConstruction contributor ) : void
contributor IContributeComponentModelConstruction
return void