Tagbbvcommon

Accelerate your application development

A

It has been a bit quiet on our blog for a longer time. Urs and I were pretty busy raising a new child. We long dreamed about a general overhaulĀ of our pet project bbv.Common. We have long been searching for a cool name which reflects the ideas behind the library. Now it is time to announce the final release version of the renamed bbv.Common. Drum roll… Appccelerate is a library which helps you accelerate your .NET application development. The libraries are based upon real world experience...

bbv.Common.Bootstrapper Tutorial Part 6

b

The reporting mechanism allows creating a full report of the bootstrapping process. To be able to report the bootstrapping process the process must actually run and a reporter must be present. By default the bootstrapper uses a null reporter which does nothing with the report. But it is also possible to hook in a report generator which creates Visio, Enterprise Architect or … (you name it!) diagrams. A custom reporter must implement the reporter interface IReporter. The reporter receives...

bbv.Common.Bootstrapper Tutorial Part 5

b

Configuration sections
The bootstrapper supports loading of configuration sections through behaviors. The behaviors responsible for loading configuration sections must be applied in the begin section of the run syntax.
ConfigurationSection
To be able to load configuration sections the ConfigurationSectionBehavior must be added in the strategy.

bbv.Common.Bootstrapper Tutorial Part 4

b

Strategy
The strategy defines the order of execution for extension points and behaviors. The custom strategy must inherit from IStrategy. For convenience, use the provided abstract base class AbstractStrategy{TExtension} which simplifies defining a custom strategy. The strategy could look like the following:

bbv.Common.Bootstrapper Tutorial Part 3

b

Behaviors Behaviors allow extending the bootstrapping process in an aspect oriented style. Behaviors gain access to extensions which are participating in the bootstrapper process and can therefore influence them for example by injecting additional runtime information into an extension. Behaviors must implement IBehavior<TExtension>. They automatically gain access to all extensions participating the bootstrapping process. Behaviors are executed before the corresponding extension point is...

bbv.Common.Bootstrapper Tutorial Part 2

b

Advanced The bootstrapper can do more! Let us look into a more complex scenario. Often it is required to collect context information during the bootstrapping process and pass this information to the extension points. Imagine you are using an inversion of control container which intakes IModule implementations to register dependencies during the bootstrapping process. All IModule implementations need to be passed into the IContainer implementation upon construction. For backward compatibility...

bbv.Common.Bootstrapper Tutorial Part 1

b

Introduction
To get started with the bootstrapper you need the following three things:

Extension interface
Strategy
Bootstrapper setup

Extension interface
The extension interface defines the extension points which are called by the bootstrapper. The custom extension interface must inherit from IExtension and can only declare methods which return void as extension points. A very basic extension interface could look like the following:

Recent Posts