Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HotSwappableTargetSource.Swap Method

Swap the target, returning the old target.

[Visual Basic]
Public Overridable Sub Swap( _
   ByVal newTarget As Object _
)
[C#]
public virtual object Swap(
   object newTarget
);

Parameters

newTarget
The new target.

Return Value

The old target.

Exceptions

Exception Type Condition
ArgumentNullException If the new target is a null reference (Nothing in Visual Basic).

See Also

HotSwappableTargetSource Class | Spring.Aop.Target Namespace