C# Class LinFu.IoC.BaseFactoryStorage

Represents the default base implementation of the IFactoryStorage class.
Inheritance: IFactoryStorage
Show file Open project: philiplaureano/LinFu

Public Methods

Method Description
AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void

Adds a IFactory to the current IFactoryStorage object.

ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not a factory exists in storage.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Determines which factories should be used for a particular service request.

Method Details

AddFactory() public method

Adds a IFactory to the current IFactoryStorage object.
public AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void
serviceInfo IServiceInfo The object that describes the target factory.
factory IFactory The instance that will create the object instance.
return void

ContainsFactory() public method

Determines whether or not a factory exists in storage.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the target factory.
return bool

GetFactory() public method

Determines which factories should be used for a particular service request.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the target factory.
return IFactory