synced AbstractAdvisorAutoProxyCreator hierarchy w/ Spring/J
introduced new "Role" property in IObjectDefinition prepared introducing InfrastructureAdvisorAutoProxyCreator
This commit is contained in:
@@ -121,9 +121,9 @@ namespace Spring.Aop.Framework.AutoProxy
|
||||
this.ObjectFactory = objectFactory;
|
||||
}
|
||||
|
||||
protected override object[] GetAdvicesAndAdvisorsForObject(Type objType, string name, ITargetSource customTargetSource)
|
||||
protected override object[] GetAdvicesAndAdvisorsForObject(Type targetType, string targetName, ITargetSource customTargetSource)
|
||||
{
|
||||
if (typeof(IFactoryObject).IsAssignableFrom(objType))
|
||||
if (typeof(IFactoryObject).IsAssignableFrom(targetType))
|
||||
{
|
||||
return DO_NOT_PROXY;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Spring.Aop.Framework.AutoProxy
|
||||
Assert.IsTrue(AopUtils.IsAopProxy(context.GetObject("independentObject")));
|
||||
|
||||
// products of the factory created at runtime should be proxied
|
||||
Assert.IsTrue(AopUtils.IsAopProxy(context.GetObject("testObjectFactory")));
|
||||
Assert.IsFalse(AopUtils.IsAopProxy(context.GetObject("testObjectFactory")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ limitations under the License.
|
||||
|
||||
</factoryAdapter>
|
||||
-->
|
||||
<factoryAdapter type="Common.Logging.Simple.NoOpLoggerFactoryAdapter, Common.Logging">
|
||||
<factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
|
||||
<arg key="level" value="ALL" />
|
||||
</factoryAdapter>
|
||||
|
||||
</logging>
|
||||
|
||||
@@ -83,6 +83,11 @@ namespace Spring.Objects.Factory
|
||||
set { throw new System.NotImplementedException(); }
|
||||
}
|
||||
|
||||
public ObjectRole Role
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
public Type ObjectType
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{ACD39D47-1811-40FA-9E7E-5DEA5B9CE6C0}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@@ -166,6 +166,7 @@
|
||||
<EmbeddedResource Include="Data\AutoDeclarativeTxTests.xml" />
|
||||
<EmbeddedResource Include="Data\Common\AdditionalProviders.xml" />
|
||||
<Content Include="Spring.Data.Tests.dll.config" />
|
||||
<Content Include="Transaction\Config\TxNamespaceParserTests_TxAttributeDriven.xml" />
|
||||
<EmbeddedResource Include="Transaction\Interceptor\MatchAlwaysTransactionAttributeSourceTests.xml" />
|
||||
<EmbeddedResource Include="Transaction\Config\TxNamespaceParserTests.xml" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user