PageRenderTime 27ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/src/LinFu.IoC/Configuration/Interfaces/IActivator.cs

http://github.com/philiplaureano/LinFu
C# | 23 lines | 12 code | 1 blank | 10 comment | 0 complexity | 866dca18c064ef1b17a8239557b1a7a9 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using LinFu.IoC.Interfaces;
 6
 7namespace LinFu.IoC.Configuration.Interfaces
 8{
 9    /// <summary>
10    /// Represents a class that can instantiate object instances.
11    /// </summary>
12    public interface IActivator
13    {
14        /// <summary>
15        /// Creates an object instance.
16        /// </summary>
17        /// <param name="concreteType">The <see cref="System.Type"/> to be instantiated.</param>
18        /// <param name="container">The <see cref="IServiceContainer"/> instance that will be used to instantiate the concrete type.</param>
19        /// <param name="additionalArguments">The additional arguments that will be passed to the target type.</param>
20        /// <returns>A valid object instance.</returns>
21        object CreateInstance(Type concreteType, IServiceContainer container, object[] additionalArguments);
22    }
23}