Craig's Utility Library  4.0 Beta
Utilities.IoC.Interfaces.IBootstrapper Interface Reference

Bootstrapper interface More...

Inheritance diagram for Utilities.IoC.Interfaces.IBootstrapper:
Utilities.IoC.BaseClasses.BootstrapperBase< Container >

Public Member Functions

void AddAssembly (params Assembly[] Assemblies)
 Adds the assembly. More...
 
void Register< T > (T Object, string Name="")
 Registers an object with the bootstrapper More...
 
void Register< T > (string Name="")
 Registers a type with the default constructor More...
 
void Register< T1, T2 > (string Name="")
 Registers a type with the default constructor of a child class More...
 
void Register< T > (Func< T > Function, string Name="")
 Registers a type with a function More...
 
void RegisterAll< T > ()
 Registers all objects of a certain type with the bootstrapper More...
 
Resolve< T > (T DefaultObject=default(T))
 Resolves the object based on the type specified More...
 
Resolve< T > (string Name, T DefaultObject=default(T))
 Resolves the object based on the type specified More...
 
object Resolve (Type ObjectType, object DefaultObject=null)
 Resolves the object based on the type specified More...
 
object Resolve (Type ObjectType, string Name, object DefaultObject=null)
 Resolves the object based on the type specified More...
 
IEnumerable< T > ResolveAll< T > ()
 Resolves the objects based on the type specified More...
 
IEnumerable< object > ResolveAll (Type ObjectType)
 Resolves all objects based on the type specified More...
 

Properties

string Name [get]
 Name of the bootstrapper More...
 

Detailed Description

Bootstrapper interface

Definition at line 34 of file IBootstrapper.cs.

Member Function Documentation

void Utilities.IoC.Interfaces.IBootstrapper.AddAssembly ( params Assembly[]  Assemblies)

Adds the assembly.

Parameters
AssembliesThe assemblies.

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

void Utilities.IoC.Interfaces.IBootstrapper.Register< T > ( Object,
string  Name = "" 
)

Registers an object with the bootstrapper

Template Parameters
TObject type
Parameters
ObjectObject to register
NameName associated with the object

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
void Utilities.IoC.Interfaces.IBootstrapper.Register< T > ( string  Name = "")

Registers a type with the default constructor

Template Parameters
TObject type to register
Parameters
NameName associated with the object

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
T :new() 
void Utilities.IoC.Interfaces.IBootstrapper.Register< T > ( Func< T >  Function,
string  Name = "" 
)

Registers a type with a function

Template Parameters
TType that the function returns
Parameters
FunctionFunction to register with the type
NameName associated with the object

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
void Utilities.IoC.Interfaces.IBootstrapper.Register< T1, T2 > ( string  Name = "")

Registers a type with the default constructor of a child class

Template Parameters
T1Base class/interface type
T2Child class type
Parameters
NameName associated with the object

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T2 :class 
T2 :T1 
T1 :class 
void Utilities.IoC.Interfaces.IBootstrapper.RegisterAll< T > ( )

Registers all objects of a certain type with the bootstrapper

Template Parameters
TObject type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
object Utilities.IoC.Interfaces.IBootstrapper.Resolve ( Type  ObjectType,
object  DefaultObject = null 
)

Resolves the object based on the type specified

Parameters
ObjectTypeObject type
DefaultObjectDefault object to return if the type can not be resolved
Returns
An object of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

object Utilities.IoC.Interfaces.IBootstrapper.Resolve ( Type  ObjectType,
string  Name,
object  DefaultObject = null 
)

Resolves the object based on the type specified

Parameters
ObjectTypeObject type
NameName associated with the object
DefaultObjectDefault object to return if the type can not be resolved
Returns
An object of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

T Utilities.IoC.Interfaces.IBootstrapper.Resolve< T > ( DefaultObject = default(T))

Resolves the object based on the type specified

Template Parameters
TType to resolve
Parameters
DefaultObjectDefault object to return if the type can not be resolved
Returns
An object of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
T Utilities.IoC.Interfaces.IBootstrapper.Resolve< T > ( string  Name,
DefaultObject = default(T) 
)

Resolves the object based on the type specified

Template Parameters
TType to resolve
Parameters
NameName associated with the object
DefaultObjectDefault object to return if the type can not be resolved
Returns
An object of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 
IEnumerable<object> Utilities.IoC.Interfaces.IBootstrapper.ResolveAll ( Type  ObjectType)

Resolves all objects based on the type specified

Parameters
ObjectTypeObject type
Returns
A list of objects of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Resolves the objects based on the type specified

Template Parameters
TType to resolve
Returns
A list of objects of the specified type

Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.

Type Constraints
T :class 

Property Documentation

string Utilities.IoC.Interfaces.IBootstrapper.Name
get

Name of the bootstrapper

Definition at line 39 of file IBootstrapper.cs.


The documentation for this interface was generated from the following file: