Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IConstructorInterceptor.Construct Method

Implement this method to perform extra treatments before and after the consruction of a new object.

[Visual Basic]
Public Sub Construct( _
   ByVal invocation As IConstructorInvocation _
object Construct(
   IConstructorInvocation invocation


The constructor invocation that is being intercepted.

Return Value

The newly created object, which is also the result of the call to Proceed, and might be replaced by the interceptor.


Polite implementations would certainly like to invoke Proceed.


Exception Type Condition
Exception If any of the interceptors in the chain or the target object itself throws an exception.

See Also

IConstructorInterceptor Interface | AopAlliance.Intercept Namespace