Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAdvisorAutoProxyCreator.GetAdvicesAndAdvisorsForObject Method

Return whether the given object is to be proxied, what additional advices (e.g. AOP Alliance interceptors) and advisors to apply.

[Visual Basic]
Protected Overrides Sub GetAdvicesAndAdvisorsForObject( _
   ByVal targetType As Type, _
   ByVal targetName As String, _
   ByVal customTargetSource As ITargetSource _
)
[C#]
protected override object[] GetAdvicesAndAdvisorsForObject(
   Type targetType,
   string targetName,
   ITargetSource customTargetSource
);

Parameters

targetType
the type of the target object
targetName
the name of the target object
customTargetSource
targetSource returned by TargetSource property: may be ignored. Will be null unless a custom target source is in use.

Return Value

an array of additional interceptors for the particular object; or an empty array if no additional interceptors but just the common ones; or null if no proxy at all, not even with the common interceptors.

Remarks

The previous targetName of this method was "GetInterceptorAndAdvisorForObject". It has been renamed in the course of general terminology clarification in Spring 1.1. An AOP Alliance Interceptor is just a special form of Advice, so the generic Advice term is preferred now.

The third parameter, customTargetSource, is new in Spring 1.1; add it to existing implementations of this method.

See Also

AbstractAdvisorAutoProxyCreator Class | Spring.Aop.Framework.AutoProxy Namespace