Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutoProxyCreator.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 MustOverride Sub GetAdvicesAndAdvisorsForObject( _
   ByVal targetType As Type, _
   ByVal targetName As String, _
   ByVal customTargetSource As ITargetSource _
protected abstract object[] GetAdvicesAndAdvisorsForObject(
   Type targetType,
   string targetName,
   ITargetSource customTargetSource


the new object instance
the name of the object
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.


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

AbstractAutoProxyCreator Class | Spring.Aop.Framework.AutoProxy Namespace