Home

Castle Stronghold

ComponentModelBuilder and Contributors

Each component registered on the kernel has an associated ComponentModel. This model stores all collected information from the component to be used during its lifetime on the kernel. Initially the model is will mostly blank. The model is created by the ComponentModelBuilder.

The ComponentModelBuilder then executes a series of "contributors" registered on it that look for an specific information about the component and takes proper action, usually changing or adding information on the ComponentModel instance.

Those "contributors" are simple classes that implement the IContributeComponentModelConstruction interface. The following are the contributors used by default. They are executed in order.

We strongly suggest that you browse the code for each contributor. They are really simple and show how concerns are really separated on the MicroKernel design. You can easy implement new contributors to augment the MicroKernel functionality.

You should also consult the following documents:

Google
Search WWW Search castleproject.org