C# Class PrismContrib.WindsorExtensions.WindsorBootstrapper

Inheritance: Prism.Bootstrapper
Show file Open project: bszafko/PrismContrib.WindsorExtensions

Private Properties

Property Type Description
CreateContainer IWindsorContainer

Public Methods

Method Description
Run ( bool runWithDefaultConfiguration ) : void

Run the bootstrapper process.

Protected Methods

Method Description
ConfigureContainer ( ) : void

Configures the IWindsorContainer. May be overwritten in a derived class to add specific type mappings required by the application.

ConfigureServiceLocator ( ) : void

Configures the LocatorProvider for the ServiceLocator.

InitializeModules ( ) : void

Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog

RegisterFrameworkExceptionTypes ( ) : void

Registers in the IWindsorContainer the Type of the Exceptions that are not considered root exceptions by the ExceptionExtensions.

RegisterTypeIfMissing ( Type fromType, Type toType, bool registerAsSingleton ) : void

Registers a type in the container only if that type was not already registered.

Private Methods

Method Description
CreateContainer ( ) : IWindsorContainer

Method Details

ConfigureContainer() protected method

Configures the IWindsorContainer. May be overwritten in a derived class to add specific type mappings required by the application.
protected ConfigureContainer ( ) : void
return void

ConfigureServiceLocator() protected method

Configures the LocatorProvider for the ServiceLocator.
protected ConfigureServiceLocator ( ) : void
return void

InitializeModules() protected method

Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog
protected InitializeModules ( ) : void
return void

RegisterFrameworkExceptionTypes() protected method

Registers in the IWindsorContainer the Type of the Exceptions that are not considered root exceptions by the ExceptionExtensions.
protected RegisterFrameworkExceptionTypes ( ) : void
return void

RegisterTypeIfMissing() protected method

Registers a type in the container only if that type was not already registered.
protected RegisterTypeIfMissing ( Type fromType, Type toType, bool registerAsSingleton ) : void
fromType System.Type The interface type to register.
toType System.Type The type implementing the interface.
registerAsSingleton bool Registers the type as a singleton.
return void

Run() public method

Run the bootstrapper process.
public Run ( bool runWithDefaultConfiguration ) : void
runWithDefaultConfiguration bool If , registers default Composite Application Library services in the container. This is the default behavior.
return void