Merge remote-tracking branch 'upstream/master' into InitDestroyAttribute
This commit is contained in:
@@ -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<T>"/> 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;
|
||||
@@ -711,7 +711,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" />
|
||||
|
||||
@@ -713,7 +713,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" />
|
||||
|
||||
@@ -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!");
|
||||
|
||||
@@ -340,7 +340,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" />
|
||||
|
||||
@@ -343,6 +343,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" />
|
||||
@@ -360,7 +361,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>
|
||||
|
||||
Reference in New Issue
Block a user