我正在将Spring.Net用于IOC和AOP。看来Spring.Net似乎不支持多个AutoProxyCreators。我有以下课程:
[Facade]
public abstract class AbstractFacade{
}
[TransactionSupportFacade]
public abstract class AbstractTransactionSupportFacade{
}
某些类是从上面的类继承的,我有以下xml配置:
<object type="Spring.Aop.Framework.AutoProxy.AttributeAutoProxyCreator , Spring.Aop">
<property name="AttributeTypes">
<list>
<value>Common.Attributes.TransactionSupportFacadeAttribute, Common</value>
</list>
</property>
<property name="InterceptorNames">
<list>
<value>JUTransactionInterceptor</value>
</list>
</property>
<property name="CheckInherited">
<value>true</value>
</property>
</object>
<object type="Spring.Aop.Framework.AutoProxy.AttributeAutoProxyCreator , Spring.Aop">
<property name="AttributeTypes">
<list>
<value>Common.Attributes.FacadeAttribute, Common</value>
</list>
</property>
<property name="InterceptorNames">
<list>
<value>IdentifyServiceAspect</value>
<value>PushIdentityAspect</value>
<value>AuthenticationAdvice</value>
<value>ValidationAspect</value>
<value>ServiceCallResultWrapperAspect</value>
</list>
</property>
<property name="CheckInherited">
<value>true</value>
</property>
</object>
问题出在这里,这些AttributeAutoProxyCreators中只有一个同时工作,请帮我解决这个问题。