/src/LinFu.IoC/Configuration/Interfaces/IFactoryBuilder.cs
http://github.com/philiplaureano/LinFu · C# · 22 lines · 9 code · 1 blank · 12 comment · 0 complexity · ba499e60970050a1a835740a1af96ada MD5 · raw file
- using System;
- using LinFu.IoC.Interfaces;
- namespace LinFu.IoC.Configuration.Interfaces
- {
- /// <summary>
- /// Represents a class that can generate <see cref="IFactory" /> instances
- /// from a given service type, implementing type, and lifecycle.
- /// </summary>
- public interface IFactoryBuilder
- {
- /// <summary>
- /// Generates a <see cref="IFactory" /> instance that can create the <paramref name="serviceType" />
- /// using the <paramref name="implementingType" /> and <paramref name="lifecycle" /> model.
- /// </summary>
- /// <param name="serviceType">The service type that will be created by the factory.</param>
- /// <param name="implementingType">The concrete type that will provide the implementation for the service type.</param>
- /// <param name="lifecycle">The instancing behavior of the given service type.</param>
- /// <returns>A valid <see cref="IFactory" /> instance.</returns>
- IFactory CreateFactory(Type serviceType, Type implementingType, LifecycleType lifecycle);
- }
- }