C# Class LinFu.IoC.FactoryStorage

Represents an IFactoryStorage instance that adds generics support to the BaseFactoryStorage implementation.
Inheritance: BaseFactoryStorage
Exibir arquivo Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.

Private Methods

Method Description
GetDefaultFactory ( string serviceName, Type serviceType, IFactory factory ) : IFactory

Gets the default factory for a particular service type if no other factory instance can be found.

GetGenericFactory ( IServiceInfo serviceInfo, IFactory factory, string serviceName, Type actualServiceType ) : IFactory

Gets the generic factory for a concrete service type.

Method Details

ContainsFactory() public method

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the service to be created.
return bool

GetFactory() public method

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the service to be created.
return IFactory