Merge remote-tracking branch 'upstream/master' into SPRNET-1518

This commit is contained in:
Thomas Trageser
2012-08-20 18:31:50 +01:00
6 changed files with 9 additions and 9 deletions

View File

@@ -34,18 +34,18 @@ namespace Spring.Objects.Factory.Support
/// </para>
/// </remarks>
/// <typeparam name="T"></typeparam>
public class DelegatingFactoryObject<T> : IFactoryObject
public class DelegateInvokingFactoryObject<T> : IFactoryObject
{
private readonly bool _isSingleton;
private readonly Func<T> _builderDelegate;
/// <summary>
/// Initializes a new instance of the <see cref="DelegatingFactoryObject&lt;T&gt;"/> class.
/// Initializes a new instance of the <see cref="DelegateInvokingFactoryObject{T}"/> class.
/// </summary>
/// <param name="builderDelegate">The builder delegate.</param>
/// <param name="isSingleton">if set to <c>true</c> [is singleton].</param>
public DelegatingFactoryObject(Func<T> builderDelegate, bool isSingleton)
public DelegateInvokingFactoryObject(Func<T> builderDelegate, bool isSingleton)
{
_builderDelegate = builderDelegate;
_isSingleton = isSingleton;

View File

@@ -708,7 +708,7 @@
<Compile Include="Objects\Factory\Parsing\ObjectDefinitionParsingException.cs" />
<Compile Include="Objects\Factory\Parsing\Problem.cs" />
<Compile Include="Objects\Factory\Parsing\ReaderContext.cs" />
<Compile Include="Objects\Factory\Support\DelegatingFactoryObject.cs" />
<Compile Include="Objects\Factory\Support\DelegateInvokingFactoryObject.cs" />
<Compile Include="Objects\Factory\Support\IObjectDefinitionRegistryPostProcessor.cs" />
<Compile Include="Objects\Factory\Support\ObjectScope.cs" />
<Compile Include="Util\ConstructorInstantiationInfo.cs" />

View File

@@ -710,7 +710,7 @@
<Compile Include="Objects\Factory\Parsing\ObjectDefinitionParsingException.cs" />
<Compile Include="Objects\Factory\Parsing\Problem.cs" />
<Compile Include="Objects\Factory\Parsing\ReaderContext.cs" />
<Compile Include="Objects\Factory\Support\DelegatingFactoryObject.cs" />
<Compile Include="Objects\Factory\Support\DelegateInvokingFactoryObject.cs" />
<Compile Include="Objects\Factory\Support\IObjectDefinitionRegistryPostProcessor.cs" />
<Compile Include="Objects\Factory\Support\ObjectScope.cs" />
<Compile Include="Stereotype\ControllerAttribute.cs" />

View File

@@ -5,7 +5,7 @@ using Spring.Context.Support;
namespace Spring.Objects.Factory.Support
{
[TestFixture]
public class DelegatingFactoryObjectTests
public class DelegateInvokingFactoryObjectTests
{
[SetUp]
public void _TestSetUp()
@@ -18,7 +18,7 @@ namespace Spring.Objects.Factory.Support
private void RegisterDelegatingFactoryWithContext(bool buildSingletonObjectsWhenInvoked)
{
var targetBuilder = new ThingThatBuildsTargets();
var factory = new DelegatingFactoryObject<TargetToBuild>(targetBuilder.BuildTarget, buildSingletonObjectsWhenInvoked);
var factory = new DelegateInvokingFactoryObject<TargetToBuild>(targetBuilder.BuildTarget, buildSingletonObjectsWhenInvoked);
Assume.That(ContextRegistry.GetContext(), Is.InstanceOf<IConfigurableApplicationContext>(), "test requires a registered context that implements IConfigurableApplicationContext!");

View File

@@ -339,7 +339,7 @@
<Compile Include="Objects\Factory\Config\VariablePlaceholderConfigurerTests.cs" />
<Compile Include="Objects\Factory\DefaultListableObjectFactoryPerfTests.cs" />
<Compile Include="Objects\Factory\DummyConfigurableFactory.cs" />
<Compile Include="Objects\Factory\Support\DelegatingFactoryObjectTests.cs" />
<Compile Include="Objects\Factory\Support\DelegateInvokingFactoryObjectTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedNameValueCollectionTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedListTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedDictionaryTests.cs" />

View File

@@ -342,6 +342,7 @@
<Compile Include="Objects\Factory\DefaultListableObjectFactoryPerfTests.cs" />
<Compile Include="Objects\Factory\DummyConfigurableFactory.cs" />
<Compile Include="Objects\Factory\ObjectFactoryUtils_PreserveOrderInHierarchy_Tests.cs" />
<Compile Include="Objects\Factory\Support\DelegateInvokingFactoryObjectTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedNameValueCollectionTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedListTests.cs" />
<Compile Include="Objects\Factory\Support\ManagedDictionaryTests.cs" />
@@ -359,7 +360,6 @@
<Compile Include="Objects\LazyTestObject.cs" />
<Compile Include="Objects\Support\AbstractSharedStateFactoryTests.cs" />
<Compile Include="Objects\Support\ByTypeSharedStateProviderTests.cs" />
<Compile Include="Objects\Factory\Support\DelegatingFactoryObjectTests.cs" />
<Compile Include="Objects\Support\MethodInvokerTests.cs">
<SubType>Code</SubType>
</Compile>