I sometimes see the term "Bootstrapper". I saw it last when creating some learning exercises for Prism. I stumbled upon UnityBootstrapper class. My question is: when would you call a class a "Bootstrapper"? Why? What does it say about the class?
|
|
|||||||
|
|
In your specific example you're talking about a Dependency Injection Container Bootstrapper. This is where you configure all of your instances and generally prepare the container for use. It also ends up being where most of the coupling in your application resides (it has to reside somewhere), but this is a side effect, not the purpose. In more general terms, a bootstrapper is just a class or method which prepares/configures a group of classes/objects or an entire API for your specific needs and use. |
|||
|
|
|
In the general sense, there is an excellent answer over at EL&U.SE to the question What's the meaning of “bootstrap”?:
As such, the
|
|||
|
|
|
Usually it means something which, given a minimal set of data, builds a complete object. For example a YieldCurveBootstrapper takes market quotes (deposit rates, swap rates, etc.) and builds a calibrated yield curve. |
|||
|
|
|
In low level terminology, a bootstrapper is a piece of code loaded on bootup which configures memory and the environment before triggering the operating system's entry point. |
|||
|
|