Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdvisorAdapterRegistry.GetInterceptor Method

Returns an IInterceptor to allow the use of the supplied advisor in an interception-based framework.

[Visual Basic]
Public Sub GetInterceptor( _
   ByVal advisor As IAdvisor _
IInterceptor GetInterceptor(
   IAdvisor advisor


The advisor to find an interceptor for.

Return Value

An interceptor to expose this advisor's behaviour.


Don't worry about the pointcut associated with the IAdvisor; if it's an IPointcutAdvisor, just return an interceptor.


Exception Type Condition
UnknownAdviceTypeException If the advisor type is not understood by any registered IAdvisorAdapter.

See Also

IAdvisorAdapterRegistry Interface | Spring.Aop.Framework.Adapter Namespace