Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.InvokeCustomDestroyMethod Method

Invoke the specified custom destroy method on the given object.

[Visual Basic]
Protected Overridable Sub InvokeCustomDestroyMethod( _
   ByVal name As String, _
   ByVal target As Object, _
   ByVal destroyMethodName As String _
protected virtual void InvokeCustomDestroyMethod(
   string name,
   object target,
   string destroyMethodName


This implementation invokes a no-arg method if found, else checking for a method with a single boolean argument (passing in "true", assuming a "force" parameter), else logging an error.

Can be overridden in subclasses for custom resolution of destroy methods with arguments.

Custom destroy methods are resolved in a case-insensitive manner.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace