Home

Castle Stronghold

Component creation flow

When a component is request from the MicroKernel a few things happens:

  1. The handler checks its state. If the state is Valid the creation is delegated to the LifestyleManager instance
  2. LifestyleManager uses its own criterias to decide whether a new component instance is required, and if so, delegates the creation to the ComponentActivator
  3. The ComponentActivator takes a few steps to create the instance
    • Selects the constructor it can satisfy more parameters
    • Creates the instance using the constructor selected
    • Tries to supply dependencies to properties
    • Runs the commission phase lifecycle steps (if any was registered)

Google
Search WWW Search castleproject.org