C# Class LinFu.IoC.Factories.LazyFactory

Represents an IFactory class that instantiates a factory only on request.
Inheritance: IFactory
ファイルを表示 Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
CreateInstance ( IFactoryRequest request ) : object

Instantiates the actual factory instance and uses it to instantiate the target service type.

LazyFactory ( IFactory>.Func getFactory ) : System

Instantiates the class with the factory functor method.

Method Details

CreateInstance() public method

Instantiates the actual factory instance and uses it to instantiate the target service type.
public CreateInstance ( IFactoryRequest request ) : object
request IFactoryRequest The that describes the service to be created.
return object

LazyFactory() public method

Instantiates the class with the factory functor method.
public LazyFactory ( IFactory>.Func getFactory ) : System
getFactory IFactory>.Func The functor that will be responsible for instantiating the actual factory.
return System